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