OpenLexocad  27.0
Base::Persistance Class Referenceabstract

Persistance class and root of the type system. More...

#include <Persistance.h>

Inheritance diagram for Base::Persistance:
Base::BaseClass Core::Property Core::PropertyContainer Core::PropertyArrowheads Core::PropertyAxis1 Core::PropertyAxis2 Core::PropertyAxis22D Core::PropertyAxis2D Core::PropertyAxis2List Core::PropertyBackLinkBase Core::PropertyBackLinkSetBase Core::PropertyBoolean Core::PropertyBrepData Core::PropertyBrepDataSet Core::PropertyBrush Core::PropertyColor Core::PropertyColorList Core::PropertyCompoundPlaneAngle Core::PropertyDateTime Core::PropertyDateTimeList Core::PropertyDirection Core::PropertyDirection Core::PropertyDirection2d Core::PropertyDirection2d Core::PropertyDrawStyle Core::PropertyEmbeddedFile Core::PropertyFace Core::PropertyFile Core::PropertyFont Core::PropertyGTransform Core::PropertyGUID Core::PropertyIndexList Core::PropertyInteger Core::PropertyLinkBase Core::PropertyLinkListBase Core::PropertyLinkSetBase Core::PropertyListPointList Core::PropertyLogical Core::PropertyLong Core::PropertyMD5 Core::PropertyMesh Core::PropertyMultiLineText Core::PropertyPen Core::PropertyPercent Core::PropertyPoint Core::PropertyPoint2d Core::PropertyPoint2dList Core::PropertyPointList Core::PropertyProxy Core::PropertyReal Core::PropertyRealList Core::PropertyRelaxation Core::PropertyRelaxationSet Core::PropertySearchSettings Core::PropertySearchSettingsVector Core::PropertySolverElementLinkVector Core::PropertySolverSolverLinkList Core::PropertyString Core::PropertyTextList Core::PropertyTexture2 Core::PropertyTexture2List Core::PropertyTexture2Transform Core::PropertyTextureCoordinateFunction Core::PropertyTextureCoordinateMapping Core::PropertyTransform Core::PropertyUInt32 Core::PropertyUInt64 Core::PropertyUInt8 Core::PropertyUInt8List Core::PropertyUser Core::PropertyVector Core::PropertyVectorList Core::CoreDocument Core::DocObject Core::PropertyBundle< T >

Public Member Functions

virtual void save (Base::AbstractWriter &, Base::PersistanceVersion &)=0
 This method is used to save properties or very small amounts of data to an XML document. More...
 
virtual void restore (Base::AbstractXMLReader &, Base::PersistanceVersion &)=0
 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::PersistanceVersion &, bool)
 This method is used to save properties or very small amounts of data to an XML document. More...
 
- Public Member Functions inherited from Base::BaseClass
virtual Type getTypeId (void) const
 
template<typename T >
bool isDerivedFrom () const
 
 BaseClass ()
 Construction. More...
 
virtual ~BaseClass ()
 Destruction. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Base::BaseClass
static Type getClassTypeId (void)
 
static void init (void)
 
static void * create (void)
 
static void setIfcNameAndID (std::string n, int id)
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0)
 
static void initIfcTypes (std::string s, Base::Type classTypeId, int id)
 

Detailed Description

Persistance class and root of the type system.

Member Function Documentation

◆ createSQL()

virtual bool Base::Persistance::createSQL ( Base::AbstractWriter ,
Base::PersistanceVersion ,
bool   
)
inlinevirtual

This method is used to save properties or very small amounts of data to an XML document.

Reimplemented in Core::Property, Core::DocObject, Core::PropertyGUID, Core::PropertyString, Core::PropertyLinkBase, Core::PropertyBoolean, Core::PropertyDateTime, Core::PropertyInteger, and Core::PropertyReal.

◆ mustbeSaved()

virtual bool Base::Persistance::mustbeSaved ( ) const
inlinevirtual

Return 'true' if this object must always be saved in the file.

Reimplemented in Core::PropertyDescriptor, Core::PythonClassObject, Core::PythonScriptObject, Core::PostSolver, and Core::PreSolver.

◆ restore()

virtual void Base::Persistance::restore ( Base::AbstractXMLReader ,
Base::PersistanceVersion  
)
pure virtual

This method is used to restore properties from an XML document.

Implemented in Core::PropertyUInt8List, Core::PropertyContainer, Core::PropertyIndexList, Core::PropertyPoint2dList, Core::PropertyTexture2List, Core::PropertyTypedLinkList< T >, Core::PropertyPoint2d, Core::PropertyLengthOpt, Core::PropertyUInt8, Core::PropertyTextureCoordinateFunction, Core::PropertyLinkList, Core::PropertyListPointList, Core::PropertyAxis2List, Core::PropertyUInt32, Core::PropertyBackLinkSetBase, Core::PropertyTextureCoordinateMapping, Core::PropertyMultiLineText, Core::PropertyUInt64, Core::PropertyAxis22D, Core::PropertyPointList, Core::PropertyColorList, Core::PropertyRealList, Core::PropertyTexture2Transform, Core::PropertyGTransform, Core::PropertyAxis2D, Core::PropertyBrepDataSet, Core::PropertyArrowheads, Core::PropertyDirection2d, Core::PropertyDateTimeList, Core::PropertyGUID, Core::PropertyRelaxationSet, Core::PropertyVectorList, Core::PropertySearchSettingsVector, Core::PropertyMD5, Core::PythonClassObject, Core::PropertyLong, Core::PropertyTextList, Core::PropertyLinkSetBase, Core::PropertyLink< T >, Core::PropertyAxis2, Core::PropertyLinkListBase, Core::PropertyString, Core::PropertyBackLinkBase, Core::PropertyLinkBase, Core::PropertyProxy, Core::PropertySolverElementLinkVector, Core::PropertySolverSolverLinkList, Core::PropertyTexture2, Core::PropertyUser, Core::PropertyAxis1, Core::PropertyLogical, Core::PropertyPoint, Core::PropertyColor, Core::PropertyDirection, Core::PropertySearchSettings, Core::PropertyMesh, Core::PropertyRelaxation, Core::PropertyTransform, Core::PropertyBrepData, Core::PropertyBrush, Core::PropertyCompoundPlaneAngle, Core::PropertyEmbeddedFile, Core::PropertyBoolean, Core::PropertyDrawStyle, Core::PropertyFont, Core::PropertyDateTime, Core::PropertyFace, Core::PropertyReal, Core::PropertyFile, Core::PropertyPen, Core::PropertyVector, Core::PythonScriptObject, Core::PropertyPercent, and Core::PropertyInteger.

◆ restoreDocFile()

virtual void Base::Persistance::restoreDocFile ( Base::Reader ,
const Base::String  
)
inlinevirtual

This method is used to restore large amounts of data from a binary file.

Reimplemented in Core::PropertyTexture2List.

◆ save()

virtual void Base::Persistance::save ( Base::AbstractWriter ,
Base::PersistanceVersion  
)
pure virtual

This method is used to save properties or very small amounts of data to an XML document.

Implemented in Core::PropertyUInt8List, Core::PropertyContainer, Core::PropertyIndexList, Core::PropertyPoint2dList, Core::PropertyTexture2List, Core::PropertyTypedLinkList< T >, Core::PropertyPoint2d, Core::PropertyLengthOpt, Core::PropertyUInt8, Core::PropertyTextureCoordinateFunction, Core::PropertyListPointList, Core::PropertyAxis2List, Core::PropertyUInt32, Core::PropertyBackLinkSetBase, Core::PropertyTextureCoordinateMapping, Core::PropertyMultiLineText, Core::PropertyUInt64, Core::PropertyAxis22D, Core::PropertyPointList, Core::PropertyColorList, Core::PropertyRealList, Core::PropertyTexture2Transform, Core::PropertyBrepDataSet, Core::PropertyArrowheads, Core::PropertyGTransform, Core::PropertyAxis2D, Core::PropertyDateTimeList, Core::PropertyGUID, Core::PropertyRelaxationSet, Core::PropertyVectorList, Core::PropertyDirection2d, Core::PropertySearchSettingsVector, Core::PropertyMD5, Core::PythonClassObject, Core::PropertyLong, Core::PropertyTextList, Core::PropertyLinkSetBase, Core::PropertyAxis2, Core::PropertyLinkListBase, Core::PropertyBackLinkBase, Core::PropertyLinkBase, Core::PropertyProxy, Core::PropertySolverElementLinkVector, Core::PropertySolverSolverLinkList, Core::PropertyString, Core::PropertyTexture2, Core::PropertyUser, Core::PropertyLogical, Core::PropertyPoint, Core::PropertyAxis1, Core::PropertyColor, Core::PropertySearchSettings, Core::PropertyMesh, Core::PropertyRelaxation, Core::PropertyBrepData, Core::PropertyBrush, Core::PropertyDirection, Core::PropertyEmbeddedFile, Core::PropertyDrawStyle, Core::PropertyFont, Core::PropertyTransform, Core::PropertyBoolean, Core::PropertyCompoundPlaneAngle, Core::PropertyFace, Core::PropertyDateTime, Core::PropertyFile, Core::PropertyPen, Core::PropertyReal, Core::PropertyVector, Core::PythonScriptObject, Core::PropertyPercent, and Core::PropertyInteger.

◆ saveDocFile()

virtual void Base::Persistance::saveDocFile ( Base::AbstractWriter ,
const Base::String ,
const Base::String  
)
inlinevirtual

This method is used to save large amounts of data to a binary file.

Reimplemented in Core::PropertyTexture2List.


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