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_SUBSCRIPTIONINFO_H_ 00019 #define _ACTIVEMQ_COMMANDS_SUBSCRIPTIONINFO_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/ActiveMQDestination.h> 00027 #include <activemq/commands/BaseDataStructure.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 * Command code for OpenWire format for SubscriptionInfo 00041 * 00042 * NOTE!: This file is auto generated - do not modify! 00043 * if you need to make a change, please see the Java Classes 00044 * in the activemq-cpp-openwire-generator module 00045 * 00046 */ 00047 class AMQCPP_API SubscriptionInfo : public BaseDataStructure { 00048 protected: 00049 00050 std::string clientId; 00051 Pointer<ActiveMQDestination> destination; 00052 std::string selector; 00053 std::string subcriptionName; 00054 Pointer<ActiveMQDestination> subscribedDestination; 00055 00056 public: 00057 00058 const static unsigned char ID_SUBSCRIPTIONINFO = 55; 00059 00060 private: 00061 00062 SubscriptionInfo(const SubscriptionInfo&); 00063 SubscriptionInfo& operator= (const SubscriptionInfo&); 00064 00065 public: 00066 00067 SubscriptionInfo(); 00068 00069 virtual ~SubscriptionInfo(); 00070 00071 virtual unsigned char getDataStructureType() const; 00072 00073 virtual SubscriptionInfo* cloneDataStructure() const; 00074 00075 virtual void copyDataStructure(const DataStructure* src); 00076 00077 virtual std::string toString() const; 00078 00079 virtual bool equals(const DataStructure* value) const; 00080 00081 virtual const std::string& getClientId() const; 00082 virtual std::string& getClientId(); 00083 virtual void setClientId( const std::string& clientId ); 00084 00085 virtual const Pointer<ActiveMQDestination>& getDestination() const; 00086 virtual Pointer<ActiveMQDestination>& getDestination(); 00087 virtual void setDestination( const Pointer<ActiveMQDestination>& destination ); 00088 00089 virtual const std::string& getSelector() const; 00090 virtual std::string& getSelector(); 00091 virtual void setSelector( const std::string& selector ); 00092 00093 virtual const std::string& getSubcriptionName() const; 00094 virtual std::string& getSubcriptionName(); 00095 virtual void setSubcriptionName( const std::string& subcriptionName ); 00096 00097 virtual const Pointer<ActiveMQDestination>& getSubscribedDestination() const; 00098 virtual Pointer<ActiveMQDestination>& getSubscribedDestination(); 00099 virtual void setSubscribedDestination( const Pointer<ActiveMQDestination>& subscribedDestination ); 00100 00101 }; 00102 00103 }} 00104 00105 #endif /*_ACTIVEMQ_COMMANDS_SUBSCRIPTIONINFO_H_*/
1.6.1