RSB
0.15.1
|
Base class for floating point type converters. More...
#include <FloatingPointConverter.h>
Public Types | |
typedef boost::shared_ptr< FloatingPointConverter< T > > | Ptr |
Public Types inherited from rsb::converter::Converter< std::string > | |
typedef boost::shared_ptr< Converter< std::string > > | Ptr |
Public Member Functions | |
FloatingPointConverter (const std::string &wireSchema) | |
virtual | ~FloatingPointConverter () |
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... | |
Additional Inherited Members | |
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... | |
Base class for floating point type converters.
Definition at line 48 of file FloatingPointConverter.h.
typedef boost::shared_ptr< FloatingPointConverter<T> > rsb::converter::FloatingPointConverter< T >::Ptr |
Definition at line 90 of file FloatingPointConverter.h.
|
inline |
Definition at line 50 of file FloatingPointConverter.h.
|
inlinevirtual |
Definition at line 62 of file FloatingPointConverter.h.
|
inlinevirtual |
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 77 of file FloatingPointConverter.h.
|
inlinevirtual |
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 65 of file FloatingPointConverter.h.