18 lines
289 B
C++
Executable File
18 lines
289 B
C++
Executable File
#include "PBUtils.h"
|
|
|
|
#include <google/protobuf/text_format.h>
|
|
|
|
namespace bts {
|
|
namespace utils {
|
|
namespace pb {
|
|
|
|
std::string to_string (google::protobuf::Message const &msg)
|
|
{
|
|
std::string result;
|
|
google::protobuf::TextFormat::PrintToString (msg, &result);
|
|
return result;
|
|
}
|
|
|
|
|
|
}}}
|