|
activemq-cpp-3.4.0
|
00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef _ACTIVEMQ_COMMANDS_PARTIALCOMMAND_H_ 00019 #define _ACTIVEMQ_COMMANDS_PARTIALCOMMAND_H_ 00020 00021 // Turn off warning message for ignored exception specification 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/Pointer.h> 00029 #include <string> 00030 #include <vector> 00031 00032 namespace activemq{ 00033 namespace commands{ 00034 00035 using decaf::lang::Pointer; 00036 00037 /* 00038 * 00039 * Command code for OpenWire format for PartialCommand 00040 * 00041 * NOTE!: This file is auto generated - do not modify! 00042 * if you need to make a change, please see the Java Classes 00043 * in the activemq-cpp-openwire-generator module 00044 * 00045 */ 00046 class AMQCPP_API PartialCommand : public BaseDataStructure { 00047 protected: 00048 00049 int commandId; 00050 std::vector<unsigned char> data; 00051 00052 public: 00053 00054 const static unsigned char ID_PARTIALCOMMAND = 60; 00055 00056 private: 00057 00058 PartialCommand( const PartialCommand& ); 00059 PartialCommand& operator= ( const PartialCommand& ); 00060 00061 public: 00062 00063 PartialCommand(); 00064 00065 virtual ~PartialCommand(); 00066 00067 virtual unsigned char getDataStructureType() const; 00068 00069 virtual PartialCommand* 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 int getCommandId() const; 00078 virtual void setCommandId( int commandId ); 00079 00080 virtual const std::vector<unsigned char>& getData() const; 00081 virtual std::vector<unsigned char>& getData(); 00082 virtual void setData( const std::vector<unsigned char>& data ); 00083 00084 }; 00085 00086 }} 00087 00088 #endif /*_ACTIVEMQ_COMMANDS_PARTIALCOMMAND_H_*/