RSB  0.19.0
rsb::converter::FloatingPointConverter< T > Class Template Reference

Base class for floating point type converters. More...

#include <FloatingPointConverter.h>

Inheritance diagram for rsb::converter::FloatingPointConverter< T >:
Inheritance graph
Collaboration diagram for rsb::converter::FloatingPointConverter< T >:
Collaboration graph

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

Detailed Description

template<typename T>
class rsb::converter::FloatingPointConverter< T >

Base class for floating point type converters.

Author
jmoringe

Definition at line 48 of file FloatingPointConverter.h.

Member Typedef Documentation

template<typename T>
typedef boost::shared_ptr< FloatingPointConverter<T> > rsb::converter::FloatingPointConverter< T >::Ptr

Definition at line 90 of file FloatingPointConverter.h.

Constructor & Destructor Documentation

template<typename T>
rsb::converter::FloatingPointConverter< T >::FloatingPointConverter ( const std::string &  wireSchema)
inline

Definition at line 50 of file FloatingPointConverter.h.

template<typename T>
virtual rsb::converter::FloatingPointConverter< T >::~FloatingPointConverter ( )
inlinevirtual

Definition at line 62 of file FloatingPointConverter.h.

Member Function Documentation

template<typename T>
AnnotatedData rsb::converter::FloatingPointConverter< T >::deserialize ( const std::string &  wireSchema,
const std::string &  wire 
)
inlinevirtual

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 77 of file FloatingPointConverter.h.

template<typename T>
std::string rsb::converter::FloatingPointConverter< T >::serialize ( const AnnotatedData data,
std::string &  wire 
)
inlinevirtual

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 65 of file FloatingPointConverter.h.


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