activemq-cpp-3.6.0
activemq::wireformat::openwire::utils::HexTable Class Reference

The HexTable class maps hexidecimal strings to the value of an index into the table, i.e. More...

#include <src/main/activemq/wireformat/openwire/utils/HexTable.h>

Public Member Functions

 HexTable ()
virtual ~HexTable ()
virtual const std::string & operator[] (std::size_t index)
 Index operator for this Table, will throw an exception if the index requested is out of bounds for this table.
virtual const std::string & operator[] (std::size_t index) const
virtual std::size_t size () const
 Returns the max size of this Table.

Detailed Description

The HexTable class maps hexidecimal strings to the value of an index into the table, i.e.

the class will return "FF" for the index 255 in the table.

Constructor & Destructor Documentation

activemq::wireformat::openwire::utils::HexTable::HexTable ( )
virtual activemq::wireformat::openwire::utils::HexTable::~HexTable ( )
inlinevirtual

Member Function Documentation

virtual const std::string& activemq::wireformat::openwire::utils::HexTable::operator[] ( std::size_t  index)
virtual

Index operator for this Table, will throw an exception if the index requested is out of bounds for this table.

Parameters
indexThe index of the value in the table to fetch.
Returns
string containing the hex value if the index
Exceptions
IndexOutOfBoundsExceptionif the index exceeds the table size.
virtual const std::string& activemq::wireformat::openwire::utils::HexTable::operator[] ( std::size_t  index) const
virtual
virtual std::size_t activemq::wireformat::openwire::utils::HexTable::size ( ) const
inlinevirtual

Returns the max size of this Table.

Returns
an integer size value for the table.

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