activemq-cpp-3.9.0
activemq::util::PrimitiveValueConverter Class Reference

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
 

Detailed Description

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

Since
3.0

Constructor & Destructor Documentation

activemq::util::PrimitiveValueConverter::PrimitiveValueConverter ( )
inline
virtual activemq::util::PrimitiveValueConverter::~PrimitiveValueConverter ( )
inlinevirtual

Member Function Documentation

template<typename TO >
TO activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode &value  DECAF_UNUSED) const
inline
template<>
bool activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
unsigned char activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
char activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
short activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
int activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
long long activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
float activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
template<>
double activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const

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