LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
lbann::protobuf::text Namespace Reference

Functions

Prototext I/O
void fill (std::istream &is, google::protobuf::Message &msg)
 Fill the protobuf message from prototext in a stream. More...
 
void fill (std::string const &str, google::protobuf::Message &msg)
 Fill the protobuf message from prototext in a string. More...
 
void load (std::string const &ptext_filename, google::protobuf::Message &msg)
 Fill the protobuf message from prototext in a file. More...
 
void write (std::ostream &os, google::protobuf::Message const &msg)
 Write the protobuf message in prototext in a stream. More...
 
std::string write (google::protobuf::Message const &msg)
 Write the protobuf message in prototext into a string. More...
 
void write (std::string const &ptext_filename, google::protobuf::Message const &msg)
 Write the protobuf message in prototext to a file. More...
 

Function Documentation

◆ fill() [1/2]

void lbann::protobuf::text::fill ( std::istream &  is,
google::protobuf::Message &  msg 
)

Fill the protobuf message from prototext in a stream.

◆ fill() [2/2]

void lbann::protobuf::text::fill ( std::string const &  str,
google::protobuf::Message &  msg 
)

Fill the protobuf message from prototext in a string.

◆ load()

void lbann::protobuf::text::load ( std::string const &  ptext_filename,
google::protobuf::Message &  msg 
)

Fill the protobuf message from prototext in a file.

◆ write() [1/3]

void lbann::protobuf::text::write ( std::ostream &  os,
google::protobuf::Message const &  msg 
)

Write the protobuf message in prototext in a stream.

◆ write() [2/3]

std::string lbann::protobuf::text::write ( google::protobuf::Message const &  msg)

Write the protobuf message in prototext into a string.

◆ write() [3/3]

void lbann::protobuf::text::write ( std::string const &  ptext_filename,
google::protobuf::Message const &  msg 
)

Write the protobuf message in prototext to a file.