Qpid Management Framework  0.24
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ObjectId.h
Go to the documentation of this file.
1 #ifndef _QmfEngineObjectId_
2 #define _QmfEngineObjectId_
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 #include <qpid/sys/IntegerTypes.h>
24 
25 namespace qmf {
26 namespace engine {
27 
28  // TODO: Add to/from string and << operator
29 
30  struct ObjectIdImpl;
31  class ObjectId {
32  public:
33  ObjectId();
34  ObjectId(const ObjectId& from);
35  ~ObjectId();
36 
37  uint64_t getObjectNum() const;
38  uint32_t getObjectNumHi() const;
39  uint32_t getObjectNumLo() const;
40  bool isDurable() const;
41  const char* str() const;
42  uint8_t getFlags() const;
43  uint16_t getSequence() const;
44  uint32_t getBrokerBank() const;
45  uint32_t getAgentBank() const;
46 
47  bool operator==(const ObjectId& other) const;
48  bool operator<(const ObjectId& other) const;
49  bool operator>(const ObjectId& other) const;
50  bool operator<=(const ObjectId& other) const;
51  bool operator>=(const ObjectId& other) const;
52  ObjectId& operator=(const ObjectId &other);
53 
54  private:
55  friend struct ObjectIdImpl;
56  friend struct ObjectImpl;
57  friend class BrokerProxyImpl;
58  friend struct QueryImpl;
59  friend struct ValueImpl;
60  friend class AgentImpl;
61  ObjectId(ObjectIdImpl* impl);
62  ObjectIdImpl* impl;
63  };
64 }
65 }
66 
67 #endif
68