LogCabin
Namespaces | Functions
Core/ProtoBuf.cc File Reference
#include <google/protobuf/text_format.h>
#include <memory>
#include <sstream>
#include "Core/Debug.h"
#include "Core/ProtoBuf.h"
#include "Core/StringUtil.h"
#include "Core/Util.h"

Go to the source code of this file.

Namespaces

namespace  google
namespace  google::protobuf
namespace  LogCabin
namespace  LogCabin::Core
namespace  LogCabin::Core::ProtoBuf
namespace  LogCabin::Core::ProtoBuf::Internal

Functions

bool google::protobuf::operator== (const Message &a, const Message &b)
 Equality for protocol buffers so that they can be used in EXPECT_EQ.
bool google::protobuf::operator!= (const Message &a, const Message &b)
 Inequality for protocol buffers so that they can be used in EXPECT_NE.
bool google::protobuf::operator== (const Message &a, const std::string &bStr)
bool google::protobuf::operator== (const std::string &a, const Message &b)
bool google::protobuf::operator!= (const Message &a, const std::string &b)
bool google::protobuf::operator!= (const std::string &a, const Message &b)
void LogCabin::Core::ProtoBuf::Internal::fromString (const std::string &str, google::protobuf::Message &protoBuf)
 Helper for fromString template.
std::string LogCabin::Core::ProtoBuf::dumpString (const google::protobuf::Message &protoBuf, bool forCopyingIntoTest=false)
 Dumps a protocol buffer message.
std::unique_ptr
< google::protobuf::Message > 
LogCabin::Core::ProtoBuf::copy (const google::protobuf::Message &protoBuf)
 Copy the contents of a protocol buffer into a new one.
bool LogCabin::Core::ProtoBuf::parse (const Core::Buffer &from, google::protobuf::Message &to, uint32_t skipBytes=0)
 Parse a protocol buffer message out of a Core::Buffer.
void LogCabin::Core::ProtoBuf::serialize (const google::protobuf::Message &from, Core::Buffer &to, uint32_t skipBytes=0)
 Serialize a protocol buffer message into a Core::Buffer.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines