|
activemq-cpp-3.3.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_ACTIVEMQTEMPDESTINATION_H_ 00019 #define _ACTIVEMQ_COMMANDS_ACTIVEMQTEMPDESTINATION_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/util/Config.h> 00027 #include <activemq/commands/ActiveMQDestination.h> 00028 #include <activemq/exceptions/ActiveMQException.h> 00029 #include <cms/Closeable.h> 00030 #include <vector> 00031 #include <string> 00032 00033 namespace activemq{ 00034 namespace core{ 00035 class ActiveMQConnection; 00036 } 00037 namespace commands{ 00038 00039 class AMQCPP_API ActiveMQTempDestination : public ActiveMQDestination, 00040 public cms::Closeable { 00041 protected: 00042 00047 core::ActiveMQConnection* connection; 00048 00049 public: 00050 00051 const static unsigned char ID_ACTIVEMQTEMPDESTINATION = 0; 00052 00053 private: 00054 00055 ActiveMQTempDestination( const ActiveMQTempDestination& ); 00056 ActiveMQTempDestination& operator= ( const ActiveMQTempDestination& ); 00057 00058 public: 00059 00060 ActiveMQTempDestination(); 00061 ActiveMQTempDestination( const std::string& name ); 00062 virtual ~ActiveMQTempDestination() throw(); 00063 00064 virtual unsigned char getDataStructureType() const; 00065 00066 virtual ActiveMQTempDestination* cloneDataStructure() const { 00067 return NULL; 00068 } 00069 00070 virtual void copyDataStructure( const DataStructure* src ) { 00071 ActiveMQDestination::copyDataStructure( src ); 00072 } 00073 00074 virtual std::string toString() const; 00075 00076 virtual bool equals( const DataStructure* value ) const { 00077 return ActiveMQDestination::equals( value ); 00078 } 00079 00080 virtual void close(); 00081 00089 void setConnection( core::ActiveMQConnection* connection ) { 00090 this->connection = connection; 00091 } 00092 00093 }; 00094 00095 }} 00096 00097 #endif /*_ACTIVEMQ_COMMANDS_ACTIVEMQTEMPDESTINATION_H_*/