activemq-cpp-3.3.0

src/main/activemq/commands/DestinationInfo.h

Go to the documentation of this file.
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_DESTINATIONINFO_H_
00019 #define _ACTIVEMQ_COMMANDS_DESTINATIONINFO_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/BaseCommand.h>
00028 #include <activemq/commands/BrokerId.h>
00029 #include <activemq/commands/ConnectionId.h>
00030 #include <activemq/util/Config.h>
00031 #include <decaf/lang/Pointer.h>
00032 #include <string>
00033 #include <vector>
00034 
00035 namespace activemq{
00036 namespace commands{
00037 
00038     using decaf::lang::Pointer;
00039 
00040     /*
00041      *
00042      *  Command code for OpenWire format for DestinationInfo
00043      *
00044      *  NOTE!: This file is auto generated - do not modify!
00045      *         if you need to make a change, please see the Java Classes
00046      *         in the activemq-cpp-openwire-generator module
00047      *
00048      */
00049     class AMQCPP_API DestinationInfo : public BaseCommand {
00050     protected:
00051 
00052         Pointer<ConnectionId> connectionId;
00053         Pointer<ActiveMQDestination> destination;
00054         unsigned char operationType;
00055         long long timeout;
00056         std::vector< decaf::lang::Pointer<BrokerId> > brokerPath;
00057 
00058     public:
00059 
00060         const static unsigned char ID_DESTINATIONINFO = 8;
00061 
00062     private:
00063 
00064         DestinationInfo( const DestinationInfo& );
00065         DestinationInfo& operator= ( const DestinationInfo& );
00066 
00067     public:
00068 
00069         DestinationInfo();
00070 
00071         virtual ~DestinationInfo();
00072 
00073         virtual unsigned char getDataStructureType() const;
00074 
00075         virtual DestinationInfo* cloneDataStructure() const;
00076 
00077         virtual void copyDataStructure( const DataStructure* src );
00078 
00079         virtual std::string toString() const;
00080 
00081         virtual bool equals( const DataStructure* value ) const;
00082 
00083         virtual const Pointer<ConnectionId>& getConnectionId() const;
00084         virtual Pointer<ConnectionId>& getConnectionId();
00085         virtual void setConnectionId( const Pointer<ConnectionId>& connectionId );
00086 
00087         virtual const Pointer<ActiveMQDestination>& getDestination() const;
00088         virtual Pointer<ActiveMQDestination>& getDestination();
00089         virtual void setDestination( const Pointer<ActiveMQDestination>& destination );
00090 
00091         virtual unsigned char getOperationType() const;
00092         virtual void setOperationType( unsigned char operationType );
00093 
00094         virtual long long getTimeout() const;
00095         virtual void setTimeout( long long timeout );
00096 
00097         virtual const std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath() const;
00098         virtual std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath();
00099         virtual void setBrokerPath( const std::vector< decaf::lang::Pointer<BrokerId> >& brokerPath );
00100 
00101         virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
00102 
00103     };
00104 
00105 }}
00106 
00107 #endif /*_ACTIVEMQ_COMMANDS_DESTINATIONINFO_H_*/