Base::Persistence Class Reference

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

#include <Persistence.h>

Inheritance diagram for Base::Persistence:
Base::BaseClass App::DynamicProperty App::Property App::PropertyContainer App::Transaction App::TransactionObject Data::ComplexGeoData Gui::Document Gui::MergeDocuments Gui::Thumbnail Part::Geometry Robot::Robot6Axis Robot::Trajectory Robot::Waypoint Sketcher::Constraint Sketcher::Sketch

List of all members.

Public Member Functions

virtual unsigned int getMemSize (void) const =0
 This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB?
virtual Base::Type getTypeId (void) const
virtual void Restore (XMLReader &)=0
 This method is used to restore properties from an XML document.
virtual void RestoreDocFile (Reader &)
 This method is used to restore large amounts of data from a file In this method you simply stream in your with SaveDocFile() saved data.
virtual void Save (Writer &) const =0
 This method is used to save properties to an XML document.
virtual void SaveDocFile (Writer &) const
 This method is used to save large amounts of data to a binary file.

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)

Detailed Description

Persistence class and root of the type system.

Definition at line 41 of file Persistence.h.


Member Function Documentation

void * Base::Persistence::create ( void   )  [static]

Reimplemented from Base::BaseClass.

Reimplemented in Data::ComplexGeoData, App::Property, App::PropertyLists, App::PropertyContainer, App::PropertyFile, App::PropertyFileIncluded, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyPlacementLink, App::PropertyGeometry, App::PropertyComplexGeoData, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyEnumeration, App::PropertyIntegerConstraint, App::PropertyPercent, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatConstraint, App::PropertyFloatList, App::PropertyString, App::PropertyFont, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::PropertyDistance, App::PropertyLength, App::PropertyAngle, App::PropertySpeed, App::PropertyAcceleration, App::TransactionObject, App::Transaction, App::VRMLObject, Gui::ViewProvider, Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObject, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderExtern, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, Drawing::FeaturePage, Drawing::FeatureProjection, Drawing::FeatureView, Drawing::FeatureViewPart, Drawing::PageGroup, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, Fem::FemMesh, Fem::FemMeshObject, Fem::PropertyFemMesh, FemGui::ViewProviderFemMesh, Image::ImagePlane, ImageGui::ViewProviderImagePlane, Inspection::Feature, Inspection::Group, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, Mesh::Curvature, Mesh::FixDefects, Mesh::HarmonizeNormals, Mesh::FlipNormals, Mesh::FixNonManifolds, Mesh::FixDuplicatedFaces, Mesh::FixDuplicatedPoints, Mesh::FixDegenerations, Mesh::FixDeformations, Mesh::FixIndices, Mesh::FillHoles, Mesh::RemoveComponents, Mesh::Export, Mesh::Import, Mesh::SegmentByMesh, Mesh::SetOperations, Mesh::Sphere, Mesh::Ellipsoid, Mesh::Cylinder, Mesh::Cone, Mesh::Torus, Mesh::Cube, Mesh::Transform, Mesh::TransformDemolding, Mesh::MeshObject, Mesh::Feature, Mesh::PropertyNormalList, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, Part::CustomFeature, Part::Chamfer, Part::Extrusion, Part::Fillet, Part::FeatureGeometrySet, Part::Mirroring, Part::Boolean, Part::Box, Part::Circle, Part::Common, Part::MultiCommon, Part::CurveNet, Part::Cut, Part::Fuse, Part::MultiFuse, Part::ImportBrep, Part::ImportIges, Part::ImportStep, Part::Polygon, Part::Section, Part::Revolution, Part::Geometry, Part::GeomPoint, Part::GeomCurve, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomSurface, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::Part2DObject, Part::Feature, Part::FeatureExt, Part::FeatureReference, Part::RuledSurface, Part::Loft, Part::Primitive, Part::Vertex, Part::Plane, Part::Sphere, Part::Ellipsoid, Part::Cylinder, Part::Cone, Part::Torus, Part::Helix, Part::Wedge, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesign::Feature, PartDesign::Additive, PartDesign::Chamfer, PartDesign::DressUp, PartDesign::Face, PartDesign::Fillet, PartDesign::Hole, PartDesign::MainPart, PartDesign::Pad, PartDesign::PatternRectangular, PartDesign::Pocket, PartDesign::Revolution, PartDesign::SketchBased, PartDesign::Subtractive, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, Points::ImportAscii, Points::PointKernel, Points::Feature, Points::Export, Points::PropertyGreyValue, Points::PropertyGreyValueList, Points::PropertyNormalList, Points::PropertyCurvatureList, Points::PropertyPointKernel, PointsGui::ViewProviderPoints, Raytracing::RayFeature, Raytracing::RayProject, Raytracing::RaySegment, Robot::Edge2TracObject, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::RobotObject, Robot::Trajectory, Robot::TrajectoryCompound, Robot::TrajectoryDressUpObject, Robot::TrajectoryObject, Robot::Waypoint, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, Sandbox::SandboxObject, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, Sketcher::SketchObject, Sketcher::SketchObjectSF, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.

Definition at line 34 of file Persistence.cpp.

Base::Type Base::Persistence::getClassTypeId ( void   )  [static]

Reimplemented from Base::BaseClass.

Reimplemented in Data::ComplexGeoData, App::Property, App::PropertyLists, App::PropertyContainer, App::PropertyFile, App::PropertyFileIncluded, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyPlacementLink, App::PropertyGeometry, App::PropertyComplexGeoData, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyEnumeration, App::PropertyIntegerConstraint, App::PropertyPercent, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatConstraint, App::PropertyFloatList, App::PropertyString, App::PropertyFont, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::PropertyDistance, App::PropertyLength, App::PropertyAngle, App::PropertySpeed, App::PropertyAcceleration, App::TransactionObject, App::Transaction, App::VRMLObject, Gui::ViewProvider, Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObject, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderExtern, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, Drawing::FeaturePage, Drawing::FeatureProjection, Drawing::FeatureView, Drawing::FeatureViewPart, Drawing::PageGroup, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, Fem::FemMesh, Fem::FemMeshObject, Fem::PropertyFemMesh, FemGui::ViewProviderFemMesh, Image::ImagePlane, ImageGui::ViewProviderImagePlane, Inspection::Feature, Inspection::Group, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, Mesh::Curvature, Mesh::FixDefects, Mesh::HarmonizeNormals, Mesh::FlipNormals, Mesh::FixNonManifolds, Mesh::FixDuplicatedFaces, Mesh::FixDuplicatedPoints, Mesh::FixDegenerations, Mesh::FixDeformations, Mesh::FixIndices, Mesh::FillHoles, Mesh::RemoveComponents, Mesh::Export, Mesh::Import, Mesh::SegmentByMesh, Mesh::SetOperations, Mesh::Sphere, Mesh::Ellipsoid, Mesh::Cylinder, Mesh::Cone, Mesh::Torus, Mesh::Cube, Mesh::Transform, Mesh::TransformDemolding, Mesh::MeshObject, Mesh::Feature, Mesh::PropertyNormalList, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, Part::CustomFeature, Part::Chamfer, Part::Extrusion, Part::Fillet, Part::FeatureGeometrySet, Part::Mirroring, Part::Boolean, Part::Box, Part::Circle, Part::Common, Part::MultiCommon, Part::CurveNet, Part::Cut, Part::Fuse, Part::MultiFuse, Part::ImportBrep, Part::ImportIges, Part::ImportStep, Part::Polygon, Part::Section, Part::Revolution, Part::Geometry, Part::GeomPoint, Part::GeomCurve, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomSurface, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::Part2DObject, Part::Feature, Part::FeatureExt, Part::FeatureReference, Part::RuledSurface, Part::Loft, Part::Primitive, Part::Vertex, Part::Plane, Part::Sphere, Part::Ellipsoid, Part::Cylinder, Part::Cone, Part::Torus, Part::Helix, Part::Wedge, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesign::Feature, PartDesign::Additive, PartDesign::Chamfer, PartDesign::DressUp, PartDesign::Face, PartDesign::Fillet, PartDesign::Hole, PartDesign::MainPart, PartDesign::Pad, PartDesign::PatternRectangular, PartDesign::Pocket, PartDesign::Revolution, PartDesign::SketchBased, PartDesign::Subtractive, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, Points::ImportAscii, Points::PointKernel, Points::Feature, Points::Export, Points::PropertyGreyValue, Points::PropertyGreyValueList, Points::PropertyNormalList, Points::PropertyCurvatureList, Points::PropertyPointKernel, PointsGui::ViewProviderPoints, Raytracing::RayFeature, Raytracing::RayProject, Raytracing::RaySegment, Robot::Edge2TracObject, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::RobotObject, Robot::Trajectory, Robot::TrajectoryCompound, Robot::TrajectoryDressUpObject, Robot::TrajectoryObject, Robot::Waypoint, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, Sandbox::SandboxObject, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, Sketcher::SketchObject, Sketcher::SketchObjectSF, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.

Definition at line 34 of file Persistence.cpp.

Referenced by Gui::TreeView::mouseDoubleClickEvent().

unsigned int Persistence::getMemSize ( void   )  const [pure virtual]

This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB?

Implemented in App::Document, App::DynamicProperty, App::Property, App::PropertyContainer, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatList, App::PropertyString, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::TransactionObject, App::Transaction, Gui::Document, Gui::MergeDocuments, Gui::Thumbnail, Fem::FemMesh, Fem::PropertyFemMesh, Mesh::MeshObject, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, Part::Geometry, Part::GeomPoint, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, Points::PointKernel, Points::PropertyCurvatureList, Points::PropertyPointKernel, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::Trajectory, Robot::Waypoint, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, and Sketcher::SketchObject.

Definition at line 45 of file Persistence.cpp.

Referenced by App::Property::getMemSize().

Base::Type Base::Persistence::getTypeId ( void   )  const [virtual]

Reimplemented from Base::BaseClass.

Reimplemented in Data::ComplexGeoData, App::Property, App::PropertyLists, App::PropertyContainer, App::PropertyFile, App::PropertyFileIncluded, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyPlacementLink, App::PropertyGeometry, App::PropertyComplexGeoData, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyEnumeration, App::PropertyIntegerConstraint, App::PropertyPercent, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatConstraint, App::PropertyFloatList, App::PropertyString, App::PropertyFont, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::PropertyDistance, App::PropertyLength, App::PropertyAngle, App::PropertySpeed, App::PropertyAcceleration, App::TransactionObject, App::Transaction, App::VRMLObject, Gui::ViewProvider, Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObject, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderExtern, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, Drawing::FeaturePage, Drawing::FeatureProjection, Drawing::FeatureView, Drawing::FeatureViewPart, Drawing::PageGroup, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, Fem::FemMesh, Fem::FemMeshObject, Fem::PropertyFemMesh, FemGui::ViewProviderFemMesh, Image::ImagePlane, ImageGui::ViewProviderImagePlane, Inspection::Feature, Inspection::Group, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, Mesh::Curvature, Mesh::FixDefects, Mesh::HarmonizeNormals, Mesh::FlipNormals, Mesh::FixNonManifolds, Mesh::FixDuplicatedFaces, Mesh::FixDuplicatedPoints, Mesh::FixDegenerations, Mesh::FixDeformations, Mesh::FixIndices, Mesh::FillHoles, Mesh::RemoveComponents, Mesh::Export, Mesh::Import, Mesh::SegmentByMesh, Mesh::SetOperations, Mesh::Sphere, Mesh::Ellipsoid, Mesh::Cylinder, Mesh::Cone, Mesh::Torus, Mesh::Cube, Mesh::Transform, Mesh::TransformDemolding, Mesh::MeshObject, Mesh::Feature, Mesh::PropertyNormalList, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, Part::CustomFeature, Part::Chamfer, Part::Extrusion, Part::Fillet, Part::FeatureGeometrySet, Part::Mirroring, Part::Boolean, Part::Box, Part::Circle, Part::Common, Part::MultiCommon, Part::CurveNet, Part::Cut, Part::Fuse, Part::MultiFuse, Part::ImportBrep, Part::ImportIges, Part::ImportStep, Part::Polygon, Part::Section, Part::Revolution, Part::Geometry, Part::GeomPoint, Part::GeomCurve, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomSurface, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::Part2DObject, Part::Feature, Part::FeatureExt, Part::FeatureReference, Part::RuledSurface, Part::Loft, Part::Primitive, Part::Vertex, Part::Plane, Part::Sphere, Part::Ellipsoid, Part::Cylinder, Part::Cone, Part::Torus, Part::Helix, Part::Wedge, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesign::Feature, PartDesign::Additive, PartDesign::Chamfer, PartDesign::DressUp, PartDesign::Face, PartDesign::Fillet, PartDesign::Hole, PartDesign::MainPart, PartDesign::Pad, PartDesign::PatternRectangular, PartDesign::Pocket, PartDesign::Revolution, PartDesign::SketchBased, PartDesign::Subtractive, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, Points::ImportAscii, Points::PointKernel, Points::Feature, Points::Export, Points::PropertyGreyValue, Points::PropertyGreyValueList, Points::PropertyNormalList, Points::PropertyCurvatureList, Points::PropertyPointKernel, PointsGui::ViewProviderPoints, Raytracing::RayFeature, Raytracing::RayProject, Raytracing::RaySegment, Robot::Edge2TracObject, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::RobotObject, Robot::Trajectory, Robot::TrajectoryCompound, Robot::TrajectoryDressUpObject, Robot::TrajectoryObject, Robot::Waypoint, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, Sandbox::SandboxObject, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, Sketcher::SketchObject, Sketcher::SketchObjectSF, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.

Definition at line 34 of file Persistence.cpp.

void Base::Persistence::init ( void   )  [static]

Reimplemented from Base::BaseClass.

Reimplemented in Data::ComplexGeoData, App::Property, App::PropertyLists, App::PropertyContainer, App::PropertyFile, App::PropertyFileIncluded, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyPlacementLink, App::PropertyGeometry, App::PropertyComplexGeoData, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyEnumeration, App::PropertyIntegerConstraint, App::PropertyPercent, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatConstraint, App::PropertyFloatList, App::PropertyString, App::PropertyFont, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::PropertyDistance, App::PropertyLength, App::PropertyAngle, App::PropertySpeed, App::PropertyAcceleration, App::TransactionObject, App::Transaction, App::VRMLObject, Gui::ViewProvider, Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObject, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderExtern, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, Drawing::FeaturePage, Drawing::FeatureProjection, Drawing::FeatureView, Drawing::FeatureViewPart, Drawing::PageGroup, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, Fem::FemMesh, Fem::FemMeshObject, Fem::PropertyFemMesh, FemGui::ViewProviderFemMesh, Image::ImagePlane, ImageGui::ViewProviderImagePlane, Inspection::Feature, Inspection::Group, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, Mesh::Curvature, Mesh::FixDefects, Mesh::HarmonizeNormals, Mesh::FlipNormals, Mesh::FixNonManifolds, Mesh::FixDuplicatedFaces, Mesh::FixDuplicatedPoints, Mesh::FixDegenerations, Mesh::FixDeformations, Mesh::FixIndices, Mesh::FillHoles, Mesh::RemoveComponents, Mesh::Export, Mesh::Import, Mesh::SegmentByMesh, Mesh::SetOperations, Mesh::Sphere, Mesh::Ellipsoid, Mesh::Cylinder, Mesh::Cone, Mesh::Torus, Mesh::Cube, Mesh::Transform, Mesh::TransformDemolding, Mesh::MeshObject, Mesh::Feature, Mesh::PropertyNormalList, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, Part::CustomFeature, Part::Chamfer, Part::Extrusion, Part::Fillet, Part::FeatureGeometrySet, Part::Mirroring, Part::Boolean, Part::Box, Part::Circle, Part::Common, Part::MultiCommon, Part::CurveNet, Part::Cut, Part::Fuse, Part::MultiFuse, Part::ImportBrep, Part::ImportIges, Part::ImportStep, Part::Polygon, Part::Section, Part::Revolution, Part::Geometry, Part::GeomPoint, Part::GeomCurve, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomSurface, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::Part2DObject, Part::Feature, Part::FeatureExt, Part::FeatureReference, Part::RuledSurface, Part::Loft, Part::Primitive, Part::Vertex, Part::Plane, Part::Sphere, Part::Ellipsoid, Part::Cylinder, Part::Cone, Part::Torus, Part::Helix, Part::Wedge, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesign::Feature, PartDesign::Additive, PartDesign::Chamfer, PartDesign::DressUp, PartDesign::Face, PartDesign::Fillet, PartDesign::Hole, PartDesign::MainPart, PartDesign::Pad, PartDesign::PatternRectangular, PartDesign::Pocket, PartDesign::Revolution, PartDesign::SketchBased, PartDesign::Subtractive, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, Points::ImportAscii, Points::PointKernel, Points::Feature, Points::Export, Points::PropertyGreyValue, Points::PropertyGreyValueList, Points::PropertyNormalList, Points::PropertyCurvatureList, Points::PropertyPointKernel, PointsGui::ViewProviderPoints, Raytracing::RayFeature, Raytracing::RayProject, Raytracing::RaySegment, Robot::Edge2TracObject, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::RobotObject, Robot::Trajectory, Robot::TrajectoryCompound, Robot::TrajectoryDressUpObject, Robot::TrajectoryObject, Robot::Waypoint, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, Sandbox::SandboxObject, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, Sketcher::SketchObject, Sketcher::SketchObjectSF, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.

Definition at line 34 of file Persistence.cpp.

void Persistence::Restore ( XMLReader  )  [pure virtual]

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

It uses the XMLReader class, which bases on SAX, to read the in Save() written information. Again the Vector as an example:

 void PropertyVector::Restore(Base::XMLReader &reader)
 {
   // read my Element
   reader.readElement("PropertyVector");
   // get the value of my Attribute
   _cVec.x = (float)reader.getAttributeAsFloat("valueX");
   _cVec.y = (float)reader.getAttributeAsFloat("valueY");
   _cVec.z = (float)reader.getAttributeAsFloat("valueZ");
 }

Implemented in App::Document, App::DynamicProperty, App::PropertyContainer, App::PropertyFileIncluded, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyEnumeration, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatList, App::PropertyString, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::TransactionObject, App::Transaction, Gui::Document, Gui::MergeDocuments, Gui::Thumbnail, Gui::ViewProviderDocumentObjectGroup, Fem::FemMesh, Fem::PropertyFemMesh, Mesh::MeshObject, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, Part::Box, Part::Geometry, Part::GeomPoint, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, Points::PointKernel, Points::Feature, Points::PropertyCurvatureList, Points::PropertyPointKernel, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::RobotObject, Robot::Trajectory, Robot::Waypoint, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, and Sketcher::SketchObject.

Definition at line 58 of file Persistence.cpp.

Referenced by App::PropertyContainer::Restore(), Part::Box::Restore(), and App::DynamicProperty::Restore().

void Persistence::RestoreDocFile ( Reader  )  [virtual]

This method is used to restore large amounts of data from a file In this method you simply stream in your with SaveDocFile() saved data.

Again you have to apply for the call of this method in the Restore() call:

 void PropertyMeshKernel::Restore(Base::XMLReader &reader)
 {
   reader.readElement("Mesh");
   std::string file (reader.getAttribute("file") );
 
   if(file == "")
   {
     // read XML
     MeshCore::MeshDocXML restorer(*_pcMesh);
     restorer.Restore(reader);
   }else{
     // initate a file read
     reader.addFile(file.c_str(),this);
  }
 }

After you issued the reader.addFile() your RestoreDocFile() is called:

 void PropertyMeshKernel::RestoreDocFile(Base::Reader &reader)
 {
     _pcMesh->Read( reader );
 }
See also:
Base::Reader,Base::XMLReader

Reimplemented in App::PropertyFileIncluded, App::PropertyVectorList, App::PropertyPythonObject, App::PropertyFloatList, App::PropertyColorList, Gui::Document, Gui::MergeDocuments, Gui::Thumbnail, Fem::FemMesh, Fem::PropertyFemMesh, Mesh::MeshObject, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, Points::PointKernel, Points::Feature, Points::PropertyCurvatureList, and Points::PropertyPointKernel.

Definition at line 68 of file Persistence.cpp.

void Persistence::Save ( Writer  )  const [pure virtual]

This method is used to save properties to an XML document.

A good example you'll find in PropertyStandard.cpp, e.g. the vector:

  void PropertyVector::Save (Writer &writer) const
  {
     writer << writer.ind() << "<PropertyVector valueX=\"" <<  _cVec.x <<
                                            "\" valueY=\"" <<  _cVec.y <<
                                            "\" valueZ=\"" <<  _cVec.z <<"\"/>" << endl;
  }

The writer.ind() expression writes the indention, just for pretty printing of the XML. As you see, the writing of the XML document is not done with a DOM implementation because of performance reasons. Therefore the programmer has to take care that a valid XML document is written. This means closing tags and writing UTF-8.

See also:
Base::Writer

Implemented in App::Document, App::DocumentObject, App::DynamicProperty, App::PropertyContainer, App::PropertyFileIncluded, App::PropertyVector, App::PropertyVectorList, App::PropertyMatrix, App::PropertyPlacement, App::PropertyLink, App::PropertyLinkSub, App::PropertyLinkList, App::PropertyLinkSubList, App::PropertyPythonObject, App::PropertyInteger, App::PropertyPath, App::PropertyEnumeration, App::PropertyIntegerList, App::PropertyFloat, App::PropertyFloatList, App::PropertyString, App::PropertyStringList, App::PropertyBool, App::PropertyColor, App::PropertyColorList, App::PropertyMaterial, App::TransactionObject, App::Transaction, Gui::Document, Gui::MergeDocuments, Gui::Thumbnail, Fem::FemMesh, Fem::PropertyFemMesh, Mesh::MeshObject, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, Part::Geometry, Part::GeomPoint, Part::GeomBezierCurve, Part::GeomBSplineCurve, Part::GeomCircle, Part::GeomArcOfCircle, Part::GeomEllipse, Part::GeomHyperbola, Part::GeomParabola, Part::GeomLine, Part::GeomLineSegment, Part::GeomOffsetCurve, Part::GeomTrimmedCurve, Part::GeomBezierSurface, Part::GeomBSplineSurface, Part::GeomCylinder, Part::GeomCone, Part::GeomSphere, Part::GeomToroid, Part::GeomPlane, Part::GeomOffsetSurface, Part::GeomTrimmedSurface, Part::GeomSurfaceOfRevolution, Part::GeomSurfaceOfExtrusion, Part::PropertyGeometryList, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, Points::PointKernel, Points::PropertyCurvatureList, Points::PropertyPointKernel, Robot::PropertyTrajectory, Robot::Robot6Axis, Robot::RobotObject, Robot::Trajectory, Robot::Waypoint, Sketcher::Constraint, Sketcher::PropertyConstraintList, Sketcher::Sketch, and Sketcher::SketchObject.

Definition at line 52 of file Persistence.cpp.

Referenced by Base::PersistencePy::getContent().

void Persistence::SaveDocFile ( Writer  )  const [virtual]

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

Sometimes it makes no sense to write property data as XML. In case the amount of data is too big or the data type has a more effective way to save itself. In this cases it is possible to write the data in a seperate file inside the document archive. In case you want do so you have to re-implement SaveDocFile(). First, you have to inform the framework in Save() that you want do so. Here an example from the Mesh module which can save a (pontetionaly big) triangle mesh:

 void PropertyMeshKernel::Save (Base::Writer &writer) const
 {
   if (writer.isForceXML())
   {
     writer << writer.ind() << "<Mesh>" << std::endl;
     MeshCore::MeshDocXML saver(*_pcMesh);
     saver.Save(writer);
   }else{
    writer << writer.ind() << "<Mesh file=\"" << writer.addFile("MeshKernel.bms", this) << "\"/>" << std::endl;
 }

The writer.isForceXML() is an indication to force you to write XML. Regardless of size and effectivness. The second part informs the Base::writer through writer.addFile("MeshKernel.bms", this) that this object wants to write a file with the given name. The method addFile() returns a unique name that then is written in the XML stream. This allows your RestoreDocFile() method to identify and read the file again. Later your SaveDocFile() method is called as many times as you issued the addFile() call:

 void PropertyMeshKernel::SaveDocFile (Base::Writer &writer) const
 {
     _pcMesh->Write( writer );
 }

In this method you can simply stream your content to the file (Base::Writer inheriting from ostream).

Reimplemented in App::PropertyFileIncluded, App::PropertyVectorList, App::PropertyPythonObject, App::PropertyFloatList, App::PropertyColorList, Gui::Document, Gui::MergeDocuments, Gui::Thumbnail, Fem::FemMesh, Fem::PropertyFemMesh, Mesh::MeshObject, Mesh::PropertyCurvatureList, Mesh::PropertyMeshKernel, Part::PropertyPartShape, Part::PropertyFilletEdges, Part::TopoShape, Points::PointKernel, Points::PropertyCurvatureList, and Points::PropertyPointKernel.

Definition at line 64 of file Persistence.cpp.

Referenced by Base::ZipWriter::writeFiles().


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

Generated on Wed Nov 23 19:01:47 2011 for FreeCAD by  doxygen 1.6.1