Qpid Management Framework  0.24
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 #include <qmf/ImportExport.h>
25 #include "qmf/Handle.h"
26 #include "qpid/types/Variant.h"
27 #include <string>
28 
29 namespace qmf {
30 
31 #ifndef SWIG
32  template <class> class PrivateImplRef;
33 #endif
34 
35  class DataAddrImpl;
36 
37  class QMF_CLASS_EXTERN DataAddr : public qmf::Handle<DataAddrImpl> {
38  public:
39  QMF_EXTERN DataAddr(DataAddrImpl* impl = 0);
40  QMF_EXTERN DataAddr(const DataAddr&);
41  QMF_EXTERN DataAddr& operator=(const DataAddr&);
42  QMF_EXTERN ~DataAddr();
43 
44  QMF_EXTERN bool operator==(const DataAddr&);
45  QMF_EXTERN bool operator<(const DataAddr&);
46 
47  QMF_EXTERN DataAddr(const qpid::types::Variant::Map&);
48  QMF_EXTERN DataAddr(const std::string& name, const std::string& agentName, uint32_t agentEpoch=0);
49  QMF_EXTERN const std::string& getName() const;
50  QMF_EXTERN const std::string& getAgentName() const;
51  QMF_EXTERN uint32_t getAgentEpoch() const;
52  QMF_EXTERN qpid::types::Variant::Map asMap() const;
53 
54  QMF_EXTERN bool operator==(const DataAddr&) const;
55  QMF_EXTERN bool operator<(const DataAddr&) const;
56 
57 #ifndef SWIG
58  private:
59  friend class qmf::PrivateImplRef<DataAddr>;
60  friend struct DataAddrImplAccess;
61 #endif
62  };
63 
64 }
65 
66 #endif