coral
A C++ library for distributed co-simulation
Classes | Functions
coral::protobuf Namespace Reference

Functions for using Protobuf with ZMQ. More...

Classes

class  SerializationException
 Exception that signals failure to serialize or deserialize a message. More...
 

Functions

void SerializeToFrame (const google::protobuf::MessageLite &source, zmq::message_t &target)
 Serializes a Protobuf message into a ZMQ message. More...
 
void ParseFromFrame (const zmq::message_t &source, google::protobuf::MessageLite &target)
 Deserializes a Protobuf message from a ZMQ message. More...
 

Detailed Description

Functions for using Protobuf with ZMQ.

Function Documentation

void coral::protobuf::ParseFromFrame ( const zmq::message_t &  source,
google::protobuf::MessageLite &  target 
)

Deserializes a Protobuf message from a ZMQ message.

Exceptions
SerializationExceptionon failure.
void coral::protobuf::SerializeToFrame ( const google::protobuf::MessageLite &  source,
zmq::message_t &  target 
)

Serializes a Protobuf message into a ZMQ message.

Any existing contents of target will be replaced.

Exceptions
SerializationExceptionon failure.