00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _ACTIVEMQ_COMMANDS_BROKERID_H_
00019 #define _ACTIVEMQ_COMMANDS_BROKERID_H_
00020
00021
00022 #ifdef _MSC_VER
00023 #pragma warning( disable : 4290 )
00024 #endif
00025
00026 #include <activemq/commands/BaseDataStructure.h>
00027 #include <activemq/util/Config.h>
00028 #include <decaf/lang/Comparable.h>
00029 #include <decaf/lang/Pointer.h>
00030 #include <string>
00031 #include <vector>
00032
00033 namespace activemq {
00034 namespace commands {
00035
00036 using decaf::lang::Pointer;
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 class AMQCPP_API BrokerId : public BaseDataStructure, public decaf::lang::Comparable<BrokerId> {
00048 protected:
00049
00050 std::string value;
00051
00052 public:
00053
00054 const static unsigned char ID_BROKERID = 124;
00055
00056 typedef decaf::lang::PointerComparator<BrokerId> COMPARATOR;
00057
00058 public:
00059
00060 BrokerId();
00061
00062 BrokerId(const BrokerId& other);
00063
00064 virtual ~BrokerId();
00065
00066 virtual unsigned char getDataStructureType() const;
00067
00068 virtual BrokerId* cloneDataStructure() const;
00069
00070 virtual void copyDataStructure(const DataStructure* src);
00071
00072 virtual std::string toString() const;
00073
00074 virtual bool equals(const DataStructure* value) const;
00075
00076 virtual const std::string& getValue() const;
00077 virtual std::string& getValue();
00078 virtual void setValue( const std::string& value );
00079
00080 virtual int compareTo(const BrokerId& value) const;
00081
00082 virtual bool equals(const BrokerId& value) const;
00083
00084 virtual bool operator==(const BrokerId& value) const;
00085
00086 virtual bool operator<(const BrokerId& value) const;
00087
00088 BrokerId& operator= (const BrokerId& other);
00089
00090 int getHashCode() const;
00091
00092 };
00093
00094 }}
00095
00096 #endif