OpenLexocad
27.1
|
#include <Transaction.h>
Classes | |
struct | PropData |
Public Member Functions | |
TransactionObject () | |
Construction. More... | |
virtual | ~TransactionObject () |
Destruction. More... | |
virtual void | applyNew (CoreDocument &Doc, Core::DocObject *pcObj) |
virtual void | applyDel (CoreDocument &Doc, Core::DocObject *pcObj) |
virtual void | applyChn (CoreDocument &Doc, Core::DocObject *pcObj, bool Forward) |
void | setProperty (const Property *pcProp) |
void | addOrRemoveProperty (const Property *pcProp, bool add) |
virtual void | save (Base::AbstractWriter &, Base::PersistenceVersion &) |
This method is used to save properties or very small amounts of data to an XML document. More... | |
virtual void | restore (Base::AbstractXMLReader &, Base::PersistenceVersion &) |
This method is used to restore properties from an XML document. More... | |
![]() | |
virtual void | saveDocFile (Base::AbstractWriter &, const Base::String &, const Base::String &) |
This method is used to save large amounts of data to a binary file. More... | |
virtual void | restoreDocFile (Base::Reader &, const Base::String &) |
This method is used to restore large amounts of data from a binary file. More... | |
virtual bool | mustbeSaved () const |
Return 'true' if this object must always be saved in the file. More... | |
virtual bool | createSQL (Base::AbstractWriter &, Base::PersistenceVersion &, bool) |
This method is used to save properties or very small amounts of data to an XML document. More... | |
![]() | |
virtual Type | getTypeId (void) const |
template<typename T > | |
bool | isDerivedFrom () const |
bool | isDerivedFrom (const Type type) const |
BaseClass () | |
Construction. More... | |
virtual | ~BaseClass () |
Destruction. More... | |
Protected Types | |
enum | Status { New, Del, Chn } |
Protected Attributes | |
enum Core::TransactionObject::Status | status |
std::unordered_map< const Property *, PropData > | _PropChangeMap |
std::string | _NameInDocument |
Friends | |
class | Transaction |
Additional Inherited Members | |
![]() | |
static std::string | encodeAttribute (const std::string &) |
![]() | |
static Type | getClassTypeId (void) |
static void | init (void) |
static void * | create (void) |
static void | setIfcNameAndID (const std::string &n, int id) |
![]() | |
long | ____deadVal = 0xBADEAFFE |
![]() | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0) |
static void | initIfcTypes (const std::string &s, Base::Type classTypeId, int id) |
Represents an entry for an object in a Transaction
|
protected |
Core::TransactionObject::TransactionObject | ( | ) |
Construction.
|
virtual |
Destruction.
void Core::TransactionObject::addOrRemoveProperty | ( | const Property * | pcProp, |
bool | add | ||
) |
|
virtual |
|
virtual |
Reimplemented in Core::TransactionDocumentObject.
|
virtual |
Reimplemented in Core::TransactionDocumentObject.
|
virtual |
This method is used to restore properties from an XML document.
Implements Base::Persistence.
|
virtual |
This method is used to save properties or very small amounts of data to an XML document.
Implements Base::Persistence.
void Core::TransactionObject::setProperty | ( | const Property * | pcProp | ) |
|
friend |
|
protected |
|
protected |