Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
DataAddr.h
Go to the documentation of this file.
1 #ifndef QMF_DATA_ADDR_H
2 #define QMF_DATA_ADDR_H
3 /*
4  *
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements. See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership. The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License. You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing,
16  * software distributed under the License is distributed on an
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  * KIND, either express or implied. See the License for the
19  * specific language governing permissions and limitations
20  * under the License.
21  *
22  */
23 
24 #if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
25 # error "The API defined in this file has been DEPRECATED and will be removed in the future."
26 # error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
27 #endif
28 
29 #include <qmf/ImportExport.h>
30 #include "qmf/Handle.h"
31 #include "qpid/types/Variant.h"
32 #include <string>
33 
34 namespace qmf {
35 
36 #ifndef SWIG
37  template <class> class PrivateImplRef;
38 #endif
39 
40  class DataAddrImpl;
41 
42  class QMF_CLASS_EXTERN DataAddr : public qmf::Handle<DataAddrImpl> {
43  public:
44  QMF_EXTERN DataAddr(DataAddrImpl* impl = 0);
45  QMF_EXTERN DataAddr(const DataAddr&);
46  QMF_EXTERN DataAddr& operator=(const DataAddr&);
47  QMF_EXTERN ~DataAddr();
48 
49  QMF_EXTERN bool operator==(const DataAddr&);
50  QMF_EXTERN bool operator<(const DataAddr&);
51 
52  QMF_EXTERN DataAddr(const qpid::types::Variant::Map&);
53  QMF_EXTERN DataAddr(const std::string& name, const std::string& agentName, uint32_t agentEpoch=0);
54  QMF_EXTERN const std::string& getName() const;
55  QMF_EXTERN const std::string& getAgentName() const;
56  QMF_EXTERN uint32_t getAgentEpoch() const;
58 
59  QMF_EXTERN bool operator==(const DataAddr&) const;
60  QMF_EXTERN bool operator<(const DataAddr&) const;
61 
62 #ifndef SWIG
63  private:
64  friend class qmf::PrivateImplRef<DataAddr>;
65  friend struct DataAddrImplAccess;
66 #endif
67  };
68 
69 }
70 
71 #endif
#define QMF_EXTERN
Definition: ImportExport.h:30
QPID_TYPES_EXTERN bool operator<(const Uuid &, const Uuid &)
bool operator==(const Duration &a, const Duration &b)
unsigned int uint32_t
Definition: IntegerTypes.h:27
A handle is like a pointer: refers to an underlying implementation object.
Definition: Handle.h:43
std::map< std::string, Variant > Map
Definition: Variant.h:76
#define QMF_CLASS_EXTERN
Definition: ImportExport.h:31

Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by doxygen 1.8.5