OpenLexocad  27.0
Object_Hnd.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Core/DocObject.h>
4 
5 #include <string>
6 
7 namespace Core
8 {
10 {
11 public:
12  Object_Hnd();
13  Object_Hnd(Core::DocObject* o, const std::string& internalName = "");
14 
15  enum Status
16  {
18  Unresolved
19  };
20 
21  Core::DocObject* getObject() const;
22  std::string getId() const;
23  Status getStatus() const;
24  void ref();
25  void unref();
26 
27  std::string name;
28 
29  bool operator==(const Object_Hnd& rhs) const;
30 
31 private:
32  Core::DocObject* _object;
33  int _id;
34  Status _status;
35 };
36 } // namespace Core
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: Object_Hnd.h:17
Definition: Base.h:19
std::string name
Definition: Object_Hnd.h:27
Status
Definition: Object_Hnd.h:15
Definition: Object_Hnd.h:9
Definition: DocObject.h:28