Apache Mesos
Classes | Namespaces | Functions
protobuf.hpp File Reference
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <string>
#include <type_traits>
#include <vector>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/message.h>
#include <google/protobuf/reflection.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <stout/abort.hpp>
#include <stout/base64.hpp>
#include <stout/error.hpp>
#include <stout/json.hpp>
#include <stout/jsonify.hpp>
#include <stout/none.hpp>
#include <stout/nothing.hpp>
#include <stout/representation.hpp>
#include <stout/result.hpp>
#include <stout/stringify.hpp>
#include <stout/try.hpp>
#include <stout/os/close.hpp>
#include <stout/os/fsync.hpp>
#include <stout/os/int_fd.hpp>
#include <stout/os/lseek.hpp>
#include <stout/os/open.hpp>
#include <stout/os/read.hpp>
#include <stout/os/write.hpp>

Go to the source code of this file.

Classes

struct  protobuf::internal::Read< T >
 
struct  protobuf::internal::Read< google::protobuf::RepeatedPtrField< T > >
 
struct  protobuf::internal::Parser
 
struct  protobuf::internal::Parse< T >
 
struct  protobuf::internal::Parse< google::protobuf::RepeatedPtrField< T > >
 
struct  JSON::Protobuf
 

Namespaces

 protobuf
 
 protobuf::internal
 
 JSON
 

Functions

Try< Nothingprotobuf::write (int_fd fd, const google::protobuf::Message &message)
 
template<typename T >
Try< Nothingprotobuf::write (int_fd fd, const google::protobuf::RepeatedPtrField< T > &messages)
 
template<typename T >
Try< Nothingprotobuf::write (const std::string &path, const T &t, bool sync=false)
 
Try< Nothingprotobuf::append (const std::string &path, const google::protobuf::Message &message, bool sync=false)
 
template<typename T >
Try< T > protobuf::deserialize (const std::string &value)
 
template<typename T >
Try< std::string > protobuf::serialize (const T &t)
 
template<typename T >
Result< T > protobuf::read (int_fd fd, bool ignorePartial=false, bool undoFailed=false)
 
template<typename T >
Result< T > protobuf::read (const std::string &path)
 
Try< Nothingprotobuf::internal::parse (google::protobuf::Message *message, const JSON::Object &object)
 
template<typename T >
Try< T > protobuf::parse (const JSON::Value &value)
 
void JSON::json (ObjectWriter *writer, const Protobuf &protobuf)
 
Object JSON::protobuf (const google::protobuf::Message &message)
 
template<typename T >
Array JSON::protobuf (const google::protobuf::RepeatedPtrField< T > &repeated)