activemq-cpp-3.9.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 DECAF_UNUSED) const |
template<> | |
bool | convert (const PrimitiveValueNode &value) const |
template<> | |
unsigned char | convert (const PrimitiveValueNode &value) const |
template<> | |
char | convert (const PrimitiveValueNode &value) const |
template<> | |
short | convert (const PrimitiveValueNode &value) const |
template<> | |
int | convert (const PrimitiveValueNode &value) const |
template<> | |
long long | convert (const PrimitiveValueNode &value) const |
template<> | |
float | convert (const PrimitiveValueNode &value) const |
template<> | |
double | 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 |-------------------------------------------------------—
|
inline |
|
inlinevirtual |
|
inline |
bool activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
unsigned char activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
char activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
short activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
int activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
long long activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
float activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |
double activemq::util::PrimitiveValueConverter::convert | ( | const PrimitiveValueNode & | value | ) | const |