activemq-cpp-3.4.0
|
Class controls the conversion of data contained in a PrimitiveValueNode from one type to another. More...
#include <src/main/activemq/util/PrimitiveValueConverter.h>
Public Member Functions | |
PrimitiveValueConverter () | |
virtual | ~PrimitiveValueConverter () |
template<typename TO > | |
TO | convert (const PrimitiveValueNode &value) const |
Class controls the conversion of data contained in a PrimitiveValueNode from one type to another.
If the conversion is supported then calling the convert method will throw an UnsupportedOperationException to indicate that its not possible to perform the conversion.
This class is used to implement the rules of conversion on CMS Message properties, the following conversion table must be implemented. A value written as the row type can be read in the column type.
| | boolean byte short int long float double String |---------------------------------------------------------- |boolean | X X |byte | X X X X X |short | X X X X |int | X X X |long | X X |float | X X X |double | X X |String | X X X X X X X X |----------------------------------------------------------
activemq::util::PrimitiveValueConverter::PrimitiveValueConverter | ( | ) | [inline] |
virtual activemq::util::PrimitiveValueConverter::~PrimitiveValueConverter | ( | ) | [inline, virtual] |
std::vector< unsigned char > activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const [inline] |