OpenLexocad  27.1
SharedObject.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Core/CoreDocument.h>
4 
5 
6 namespace Core
7 {
25 class LX_CORE_EXPORT SharedObject
26 {
27 public:
28  friend class CoreDocument;
29 
30  SharedObject();
31  virtual ~SharedObject();
32 
33 protected:
34  virtual Core::DocObject* copyShared(Core::CoreDocument* toDoc, DocObjectMap& copyMap = DocObjectMap()) = 0;
35 };
36 
37 } // namespace Core
Definition: CoreDocument.h:210
Definition: Base.h:12
The SharedObject is an interface that must be implemented by all classes that want to share their res...
Definition: SharedObject.h:25
std::map< Core::DocObject *, Core::DocObject * > DocObjectMap
Definition: DocObject.h:10
Definition: DocObject.h:51