RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::converter::Int64Converter Class Reference

Converter for the int64 type. More...

#include <Int64Converter.h>

Inheritance diagram for rsb::converter::Int64Converter:
Inheritance graph
Collaboration diagram for rsb::converter::Int64Converter:
Collaboration graph

Public Member Functions

 Int64Converter ()
 
virtual ~Int64Converter ()
 
std::string serialize (const AnnotatedData &data, std::string &wire)
 Serialized the given domain object to the wire. More...
 
AnnotatedData deserialize (const std::string &wireSchema, const std::string &wire)
 Deserializes a domain object from a wire type. More...
 
- 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. More...
 
virtual std::string getWireSchema () const
 Returns the name of the wire schema this converter can (de)serialize from/to. More...
 

Static Private Attributes

static const std::string WIRE_SCHEMA = "int64"
 

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. More...
 
 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. More...
 

Detailed Description

Converter for the int64 type.

Author
jwienke
jmoringe

Definition at line 47 of file Int64Converter.h.

Constructor & Destructor Documentation

rsb::converter::Int64Converter::Int64Converter ( )

Definition at line 43 of file Int64Converter.cpp.

rsb::converter::Int64Converter::~Int64Converter ( )
virtual

Definition at line 47 of file Int64Converter.cpp.

Member Function Documentation

AnnotatedData rsb::converter::Int64Converter::deserialize ( const std::string &  wireSchema,
const std::string &  wire 
)
virtual

Deserializes a domain object from a wire type.

Parameters
wireSchematype of the wire message
wirethe wire containing the data
Returns
the deserialized domain object annotated with its data type name
Exceptions
SerializationExceptionif deserializing the message fails

Implements rsb::converter::Converter< std::string >.

Definition at line 61 of file Int64Converter.cpp.

References rsb::converter::Converter< std::string >::getDataType(), and WIRE_SCHEMA.

Here is the call graph for this function:

string rsb::converter::Int64Converter::serialize ( const AnnotatedData data,
std::string &  wire 
)
virtual

Serialized the given domain object to the wire.

Parameters
datadata to serialize
wirethe wire to serialize on
Returns
the wire schema the data is encoded with
Exceptions
SerializationExceptionif the serialization failed

Implements rsb::converter::Converter< std::string >.

Definition at line 50 of file Int64Converter.cpp.

References WIRE_SCHEMA.

Member Data Documentation

const string rsb::converter::Int64Converter::WIRE_SCHEMA = "int64"
staticprivate

Definition at line 58 of file Int64Converter.h.

Referenced by deserialize(), and serialize().


The documentation for this class was generated from the following files: