00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_HEXTABLE_H_
00019 #define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_HEXTABLE_H_
00020
00021 #include <vector>
00022 #include <string>
00023
00024 #include <activemq/util/Config.h>
00025 #include <decaf/lang/exceptions/IndexOutOfBoundsException.h>
00026
00027 namespace activemq{
00028 namespace wireformat{
00029 namespace openwire{
00030 namespace utils{
00031
00037 class AMQCPP_API HexTable {
00038 private:
00039
00040
00041 std::vector<std::string> table;
00042
00043 public:
00044
00045 HexTable();
00046 virtual ~HexTable() {}
00047
00059 virtual const std::string& operator[]( std::size_t index );
00060 virtual const std::string& operator[]( std::size_t index ) const;
00061
00067 virtual std::size_t size() const{
00068 return table.size();
00069 }
00070
00071 };
00072
00073 }}}}
00074
00075 #endif