activemq-cpp-3.4.0

src/main/activemq/commands/ConnectionId.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_CONNECTIONID_H_
00019 #define _ACTIVEMQ_COMMANDS_CONNECTIONID_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/Comparable.h>
00029 #include <decaf/lang/Pointer.h>
00030 #include <string>
00031 #include <vector>
00032 
00033 namespace activemq{
00034 namespace commands{
00035 
00036     class SessionId;
00037     class ProducerId;
00038     class ConsumerId;
00039 
00040     using decaf::lang::Pointer;
00041 
00042     /*
00043      *
00044      *  Command code for OpenWire format for ConnectionId
00045      *
00046      *  NOTE!: This file is auto generated - do not modify!
00047      *         if you need to make a change, please see the Java Classes
00048      *         in the activemq-cpp-openwire-generator module
00049      *
00050      */
00051     class AMQCPP_API ConnectionId : public BaseDataStructure, public decaf::lang::Comparable<ConnectionId> {
00052     protected:
00053 
00054         std::string value;
00055 
00056     public:
00057 
00058         const static unsigned char ID_CONNECTIONID = 120;
00059 
00060         typedef decaf::lang::PointerComparator<ConnectionId> COMPARATOR;
00061 
00062     public:
00063 
00064         ConnectionId();
00065 
00066         ConnectionId( const ConnectionId& other );
00067 
00068         ConnectionId( const SessionId* sessionId );
00069 
00070         ConnectionId( const ProducerId* producerId );
00071 
00072         ConnectionId( const ConsumerId* consumerId );
00073 
00074         virtual ~ConnectionId();
00075 
00076         virtual unsigned char getDataStructureType() const;
00077 
00078         virtual ConnectionId* cloneDataStructure() const;
00079 
00080         virtual void copyDataStructure( const DataStructure* src );
00081 
00082         virtual std::string toString() const;
00083 
00084         virtual bool equals( const DataStructure* value ) const;
00085 
00086         virtual const std::string& getValue() const;
00087         virtual std::string& getValue();
00088         virtual void setValue( const std::string& value );
00089 
00090         virtual int compareTo( const ConnectionId& value ) const;
00091 
00092         virtual bool equals( const ConnectionId& value ) const;
00093 
00094         virtual bool operator==( const ConnectionId& value ) const;
00095 
00096         virtual bool operator<( const ConnectionId& value ) const;
00097 
00098         ConnectionId& operator= ( const ConnectionId& other );
00099 
00100     };
00101 
00102 }}
00103 
00104 #endif /*_ACTIVEMQ_COMMANDS_CONNECTIONID_H_*/