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