RSB
0.7.0
|
Objects this class store mappings of one of the followings forms. More...
#include <UnambiguousConverterMap.h>
Public Types | |
typedef ConverterSelectionStrategy < WireType >::ConverterPtr | ConverterPtr |
Public Types inherited from rsb::converter::ConverterSelectionStrategy< WireType > | |
typedef Converter< WireType >::Ptr | ConverterPtr |
typedef boost::shared_ptr < ConverterSelectionStrategy < WireType > > | Ptr |
Public Member Functions | |
ConverterPtr | getConverter (const std::string &key) const |
Tries to look up the converter designator by key. | |
void | addConverter (const std::string &key, ConverterPtr converter) |
Stores converter in the map under the name key. |
Private Types | |
typedef std::map< std::string, ConverterPtr > | ConverterMap |
Private Member Functions | |
std::string | getClassName () const |
void | printContents (std::ostream &stream) const |
Private Attributes | |
ConverterMap | converters |
Objects this class store mappings of one of the followings forms.
Definition at line 52 of file UnambiguousConverterMap.h.
|
private |
Definition at line 99 of file UnambiguousConverterMap.h.
typedef ConverterSelectionStrategy<WireType>::ConverterPtr rsb::converter::UnambiguousConverterMap< WireType >::ConverterPtr |
Definition at line 54 of file UnambiguousConverterMap.h.
|
inline |
Stores converter in the map under the name key.
key | Either a wire-schema or a data-type depending on the context in which the map is used. |
converter | The converter that should be added. |
std::invalid_argument | If there already is a converter for the name key. |
Definition at line 87 of file UnambiguousConverterMap.h.
References rsb::converter::UnambiguousConverterMap< WireType >::converters.
Referenced by rsb::converter::Repository< WireType >::getConvertersForDeserialization(), and rsb::converter::Repository< WireType >::getConvertersForSerialization().
|
inlineprivate |
Definition at line 103 of file UnambiguousConverterMap.h.
|
inlinevirtual |
Tries to look up the converter designator by key.
key | A wire-schema or data-type designated the desired converter. |
rsc::runtime::NoSuchObject | If there is no converter fo key. |
Implements rsb::converter::ConverterSelectionStrategy< WireType >.
Definition at line 64 of file UnambiguousConverterMap.h.
References rsb::converter::UnambiguousConverterMap< WireType >::converters.
|
inlineprivate |
Definition at line 107 of file UnambiguousConverterMap.h.
References rsb::converter::UnambiguousConverterMap< WireType >::converters.
|
private |