00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _ACTIVEMQ_COMMANDS_DATAARRAYRESPONSE_H_
00019 #define _ACTIVEMQ_COMMANDS_DATAARRAYRESPONSE_H_
00020
00021
00022 #ifdef _MSC_VER
00023 #pragma warning( disable : 4290 )
00024 #endif
00025
00026 #include <activemq/commands/DataStructure.h>
00027 #include <activemq/commands/Response.h>
00028 #include <activemq/util/Config.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 DataArrayResponse : public Response {
00048 protected:
00049
00050 std::vector< decaf::lang::Pointer<DataStructure> > data;
00051
00052 public:
00053
00054 const static unsigned char ID_DATAARRAYRESPONSE = 33;
00055
00056 private:
00057
00058 DataArrayResponse(const DataArrayResponse&);
00059 DataArrayResponse& operator= (const DataArrayResponse&);
00060
00061 public:
00062
00063 DataArrayResponse();
00064
00065 virtual ~DataArrayResponse();
00066
00067 virtual unsigned char getDataStructureType() const;
00068
00069 virtual DataArrayResponse* cloneDataStructure() const;
00070
00071 virtual void copyDataStructure(const DataStructure* src);
00072
00073 virtual std::string toString() const;
00074
00075 virtual bool equals(const DataStructure* value) const;
00076
00077 virtual const std::vector< decaf::lang::Pointer<DataStructure> >& getData() const;
00078 virtual std::vector< decaf::lang::Pointer<DataStructure> >& getData();
00079 virtual void setData( const std::vector< decaf::lang::Pointer<DataStructure> >& data );
00080
00081 };
00082
00083 }}
00084
00085 #endif