RSB
0.7.0
|
#include <RosettaConverter.h>
Public Member Functions | |
RosettaConverter () | |
virtual | ~RosettaConverter () |
std::string | serialize (const AnnotatedData &data, std::string &wire) |
Serialized the given domain object to the wire. | |
AnnotatedData | deserialize (const std::string &wireType, const std::string &wire) |
Deserializes a domain object from a wire type. | |
Public Member Functions inherited from rsb::converter::Converter< std::string > | |
virtual | ~Converter () |
virtual std::string | getDataType () const |
Returns the name of the data type this converter is applicable for. | |
virtual std::string | getWireSchema () const |
Returns the name of the wire schema this converter can (de)serialize from/to. |
Additional Inherited Members | |
Public Types inherited from rsb::converter::Converter< std::string > | |
typedef boost::shared_ptr < Converter< std::string > > | Ptr |
Protected Member Functions inherited from rsb::converter::Converter< std::string > | |
Converter (const std::string &dataType, const std::string &wireSchema, bool dummy=true) | |
Creates a new instance of this class with automatic handling for types. | |
Converter (const std::string &wireSchema, const DataType *=0) | |
Creates a new instance of this class with a data type string that is inferred based on the template parameter DataType. |
Mechanism | |
Type |
Definition at line 48 of file RosettaConverter.h.
rsb::converter::RosettaConverter< Mechanism, Type >::RosettaConverter | ( | ) |
Definition at line 64 of file RosettaConverter.h.
|
virtual |
Definition at line 72 of file RosettaConverter.h.
|
virtual |
Deserializes a domain object from a wire type.
wireSchema | type of the wire message |
wire | the wire containing the data |
SerializationException | if deserializing the message fails |
Implements rsb::converter::Converter< std::string >.
Definition at line 96 of file RosettaConverter.h.
|
virtual |
Serialized the given domain object to the wire.
data | data to serialize |
wire | the wire to serialize on |
SerializationException | if the serialization failed |
Implements rsb::converter::Converter< std::string >.
Definition at line 78 of file RosettaConverter.h.