qmf/DataAddr.h Source File

Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

qmf/DataAddr.h
Go to the documentation of this file.

    00001 #ifndef QMF_DATA_ADDR_H
    00002 #define QMF_DATA_ADDR_H
    00003 /*
    00004  *
    00005  * Licensed to the Apache Software Foundation (ASF) under one
    00006  * or more contributor license agreements.  See the NOTICE file
    00007  * distributed with this work for additional information
    00008  * regarding copyright ownership.  The ASF licenses this file
    00009  * to you under the Apache License, Version 2.0 (the
    00010  * "License"); you may not use this file except in compliance
    00011  * with the License.  You may obtain a copy of the License at
    00012  *
    00013  *   http://www.apache.org/licenses/LICENSE-2.0
    00014  *
    00015  * Unless required by applicable law or agreed to in writing,
    00016  * software distributed under the License is distributed on an
    00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    00018  * KIND, either express or implied.  See the License for the
    00019  * specific language governing permissions and limitations
    00020  * under the License.
    00021  *
    00022  */
    00023
    00024 #include <qmf/ImportExport.h>
    00025 #include "qmf/Handle.h"
    00026 #include "qpid/types/Variant.h"
    00027 #include <string>
    00028
    00029 namespace qmf {
    00030
    00031 #ifndef SWIG
    00032     template <class> class PrivateImplRef;
    00033 #endif
    00034
    00035     class DataAddrImpl;
    00036
    00037     class QMF_CLASS_EXTERN DataAddr : public qmf::Handle<DataAddrImpl> {
    00038     public:
    00039         QMF_EXTERN DataAddr(DataAddrImpl* impl = 0);
    00040         QMF_EXTERN DataAddr(const DataAddr&);
    00041         QMF_EXTERN DataAddr& operator=(const DataAddr&);
    00042         QMF_EXTERN ~DataAddr();
    00043
    00044         QMF_EXTERN bool operator==(const DataAddr&);
    00045         QMF_EXTERN bool operator<(const DataAddr&);
    00046
    00047         QMF_EXTERN DataAddr(const qpid::types::Variant::Map&);
    00048         QMF_EXTERN DataAddr(const std::string& name, const std::string& agentName, uint32_t agentEpoch=0);
    00049         QMF_EXTERN const std::string& getName() const;
    00050         QMF_EXTERN const std::string& getAgentName() const;
    00051         QMF_EXTERN uint32_t getAgentEpoch() const;
    00052         QMF_EXTERN qpid::types::Variant::Map asMap() const;
    00053
    00054         QMF_EXTERN bool operator==(const DataAddr&) const;
    00055         QMF_EXTERN bool operator<(const DataAddr&) const;
    00056
    00057 #ifndef SWIG
    00058     private:
    00059         friend class qmf::PrivateImplRef<DataAddr>;
    00060         friend struct DataAddrImplAccess;
    00061 #endif
    00062     };
    00063
    00064 }
    00065
    00066 #endif