OpenLexocad  27.1
Core::SharedObject Class Referenceabstract

The SharedObject is an interface that must be implemented by all classes that want to share their resources when copied within the same document. More...

#include <SharedObject.h>

Public Member Functions

 SharedObject ()
 
virtual ~SharedObject ()
 

Protected Member Functions

virtual Core::DocObjectcopyShared (Core::CoreDocument *toDoc, DocObjectMap &copyMap=DocObjectMap())=0
 

Friends

class CoreDocument
 

Detailed Description

The SharedObject is an interface that must be implemented by all classes that want to share their resources when copied within the same document.

Derived classes must implement the 'copyShared()' method. These objects are treated differently in

See also
Core::CoreDocument::copyObject(). The standard implementation is:
{
if (getDocument() == toDoc) return this;
else return App::LxObject::copy(toDoc, copyMap);
}
Since
26.0

Constructor & Destructor Documentation

◆ SharedObject()

Core::SharedObject::SharedObject ( )

◆ ~SharedObject()

virtual Core::SharedObject::~SharedObject ( )
virtual

Member Function Documentation

◆ copyShared()

virtual Core::DocObject* Core::SharedObject::copyShared ( Core::CoreDocument toDoc,
DocObjectMap copyMap = DocObjectMap() 
)
protectedpure virtual

Friends And Related Function Documentation

◆ CoreDocument

friend class CoreDocument
friend

The documentation for this class was generated from the following file: