#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 LogError (const std::string &method, const std::string &err, Logger *logger)
 

Member Function Documentation

◆ LogError()

PUSH_PROTO_WARNINGS POP_PROTO_WARNINGS void PBUtils::LogError ( const std::string &  method,
const std::string &  err,
Logger logger 
)
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.