OpenLexocad  28.0
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:
12  Object_Hnd(Core::DocObject* o, const std::string& internalName = "");
13 
14  enum Status
15  {
17  Unresolved
18  };
19 
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
Core::Object_Hnd::operator==
bool operator==(const Object_Hnd &rhs) const
Core::Object_Hnd::ref
void ref()
Core::Object_Hnd::name
std::string name
Definition: Object_Hnd.h:26
Core::Object_Hnd::Status
Status
Definition: Object_Hnd.h:15
Core::Object_Hnd::Object_Hnd
Object_Hnd()
Core::DocObject
Definition: DocObject.h:54
Core
Definition: Base.h:5
Core::Object_Hnd::Valid
@ Valid
Definition: Object_Hnd.h:16
Core::Object_Hnd::getId
std::string getId() const
Core::Object_Hnd::unref
void unref()
Core::Object_Hnd
Definition: Object_Hnd.h:9
Core::Object_Hnd::getObject
Core::DocObject * getObject() const
Core::Object_Hnd::Object_Hnd
Object_Hnd(Core::DocObject *o, const std::string &internalName="")
Core::Object_Hnd::getStatus
Status getStatus() const