activemq-cpp-3.6.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) 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

std::vector< unsigned char > activemq::util::PrimitiveValueConverter::convert ( const PrimitiveValueNode value) const
inline

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