RSB
0.7.0
|
A converter for aggregated events ordered by their scope and time for each scope. More...
#include <EventsByScopeMapConverter.h>
Public Member Functions | |
EventsByScopeMapConverter (ConverterSelectionStrategy< std::string >::Ptr serializationConverters=converterRepository< std::string >()->getConvertersForSerialization(), ConverterSelectionStrategy< std::string >::Ptr deserializationConverters=converterRepository< std::string >()->getConvertersForDeserialization()) | |
Constructs a new converter and optionally allows to specify a converter::Repository which will be used for the contained events of arbitrary types. | |
virtual | ~EventsByScopeMapConverter () |
std::string | getClassName () const |
std::string | serialize (const AnnotatedData &data, std::string &wire) |
Serialized the given domain object to the wire. | |
AnnotatedData | deserialize (const std::string &wireSchema, const std::string &wire) |
Deserializes a domain object from a wire type. | |
std::string | getWireSchema () const |
Returns the name of the wire schema this converter can (de)serialize from/to. | |
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. |
Private Attributes | |
ConverterSelectionStrategy < std::string >::Ptr | serializationConverters |
ConverterSelectionStrategy < std::string >::Ptr | deserializationConverters |
Converter< std::string >::Ptr | converter |
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. |
A converter for aggregated events ordered by their scope and time for each scope.
Definition at line 46 of file EventsByScopeMapConverter.h.
rsb::converter::EventsByScopeMapConverter::EventsByScopeMapConverter | ( | ConverterSelectionStrategy< std::string >::Ptr | serializationConverters = converterRepository<std::string>()->getConvertersForSerialization() , |
ConverterSelectionStrategy< std::string >::Ptr | deserializationConverters = converterRepository<std::string>()->getConvertersForDeserialization() |
||
) |
Constructs a new converter and optionally allows to specify a converter::Repository which will be used for the contained events of arbitrary types.
serializationConverters | converters to use for serialization. Defaults to the unambiguous map from stringConverterRepository |
deserializationConverters | converters to use for deserialization. Defaults to the unambiguous map from stringConverterRepository |
Definition at line 46 of file EventsByScopeMapConverter.cpp.
|
virtual |
Definition at line 57 of file EventsByScopeMapConverter.cpp.
|
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 121 of file EventsByScopeMapConverter.cpp.
References deserializationConverters, rsb::protocol::fillEvent(), rsb::converter::ConverterSelectionStrategy< WireType >::getConverter(), rsb::converter::Converter< std::string >::getDataType(), and getWireSchema().
string rsb::converter::EventsByScopeMapConverter::getClassName | ( | ) | const |
Reimplemented from rsb::converter::Converter< std::string >.
Definition at line 64 of file EventsByScopeMapConverter.cpp.
|
virtual |
Returns the name of the wire schema this converter can (de)serialize from/to.
Reimplemented from rsb::converter::Converter< std::string >.
Definition at line 60 of file EventsByScopeMapConverter.cpp.
References converter, and rsb::converter::Converter< WireType >::getWireSchema().
Referenced by deserialize().
|
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 68 of file EventsByScopeMapConverter.cpp.
References converter, rsb::protocol::fillNotificationHeader(), rsb::protocol::fillNotificationId(), rsb::converter::ConverterSelectionStrategy< WireType >::getConverter(), rsb::converter::Converter< std::string >::getDataType(), serializationConverters, rsb::converter::Converter< WireType >::serialize(), and rsb::converter::Converter< std::string >::wireSchema.
Definition at line 80 of file EventsByScopeMapConverter.h.
Referenced by getWireSchema(), and serialize().
|
private |
Definition at line 79 of file EventsByScopeMapConverter.h.
Referenced by deserialize().
|
private |
Definition at line 78 of file EventsByScopeMapConverter.h.
Referenced by serialize().