#include <PBUtils.h>

Static Public Member Functions

static bool SerializeFromFile (const std::string &filename, google::protobuf::Message &dst, Logger *logger)
 
static bool SerializeToFile (const google::protobuf::Message &src, const std::string &filename, Logger *logger)
 
static bool SerializeFromString (const std::string &src, google::protobuf::Message &dst, eSerializationFormat m, Logger *logger)
 
static bool SerializeToString (const google::protobuf::Message &src, std::string &output, eSerializationFormat m, Logger *logger)
 
static void ProtobufLogHandler (google::protobuf::LogLevel level, const char *filename, int line, const std::string &message)
 

Member Function Documentation

◆ ProtobufLogHandler()

void PBUtils::ProtobufLogHandler ( google::protobuf::LogLevel  level,
const char *  filename,
int  line,
const std::string &  message 
)
static

◆ SerializeFromFile()

bool PBUtils::SerializeFromFile ( const std::string &  filename,
google::protobuf::Message &  dst,
Logger logger 
)
static

◆ SerializeFromString()

bool PBUtils::SerializeFromString ( const std::string &  src,
google::protobuf::Message &  dst,
eSerializationFormat  m,
Logger logger 
)
static

◆ SerializeToFile()

bool PBUtils::SerializeToFile ( const google::protobuf::Message &  src,
const std::string &  filename,
Logger logger 
)
static

◆ SerializeToString()

bool PBUtils::SerializeToString ( const google::protobuf::Message &  src,
std::string &  output,
eSerializationFormat  m,
Logger logger 
)
static

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.