activemq-cpp-3.9.5
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

◆ PrimitiveValueConverter()

activemq::util::PrimitiveValueConverter::PrimitiveValueConverter ( )
inline

◆ ~PrimitiveValueConverter()

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

Member Function Documentation

◆ convert() [1/9]

template<typename TO>
TO activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode &value DECAF_UNUSED) const
inline

◆ convert() [2/9]

template<>
bool activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [3/9]

template<>
unsigned char activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [4/9]

template<>
char activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [5/9]

template<>
short activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [6/9]

template<>
int activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [7/9]

template<>
long long activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [8/9]

template<>
float activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

◆ convert() [9/9]

template<>
double activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode & value) const

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