The XML reader class This is an important helper class for the store and retrieval system of objects in FreeCAD. More...
#include <Reader.h>
Classes | |
struct | FileEntry |
Public Types | |
enum | ReaderStatus { PartialRestore = 0 , PartialRestoreInDocumentObject = 1 , PartialRestoreInProperty = 2 , PartialRestoreInObject = 3 } |
Public Member Functions | |
bool | isValid () const |
bool | isVerbose () const |
void | setVerbose (bool on) |
XMLReader (const char *FileName, std::istream &) | |
open the file and read the first element More... | |
~XMLReader () | |
Parser handling | |
const char * | localName () const |
get the local name of the current Element More... | |
int | level () const |
get the current element level More... | |
void | readElement (const char *ElementName=nullptr) |
read until a start element is found (<name>) or start-end element (<name/>) (with special name if given) More... | |
void | readEndElement (const char *ElementName=nullptr, int level=-1) |
read until an end element is found More... | |
void | readCharacters () |
read until characters are found More... | |
void | readBinFile (const char *) |
read binary file More... | |
Attribute handling | |
unsigned int | getAttributeCount () const |
get the number of attributes of the current element More... | |
bool | hasAttribute (const char *AttrName) const |
check if the read element has a special attribute More... | |
long | getAttributeAsInteger (const char *AttrName) const |
return the named attribute as an interer (does type checking) More... | |
unsigned long | getAttributeAsUnsigned (const char *AttrName) const |
double | getAttributeAsFloat (const char *AttrName) const |
return the named attribute as a double floating point (does type checking) More... | |
const char * | getAttribute (const char *AttrName) const |
return the named attribute as a double floating point (does type checking) More... | |
Protected Member Functions | |
Content handler | |
virtual void | startDocument () |
virtual void | endDocument () |
virtual void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE_QUALIFIER Attributes &attrs) |
virtual void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
virtual void | characters (const XMLCh *const chars, const XMLSize_t length) |
virtual void | ignorableWhitespace (const XMLCh *const chars, const XMLSize_t length) |
Lexical handler | |
virtual void | startCDATA () |
virtual void | endCDATA () |
Document handler | |
virtual void | resetDocument () |
Error handler | |
typedef std::map< std::string, std::string > | AttrMapType |
int | Level |
std::string | LocalName |
std::string | Characters |
unsigned int | CharacterCount |
std::map< std::string, std::string > | AttrMap |
enum Base::XMLReader:: { ... } | ReadType |
XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader * | parser |
XERCES_CPP_NAMESPACE_QUALIFIER XMLPScanToken | token |
std::vector< std::string > | FileNames |
std::bitset< 32 > | StatusBits |
void | warning (const XERCES_CPP_NAMESPACE_QUALIFIER SAXParseException &exc) |
void | error (const XERCES_CPP_NAMESPACE_QUALIFIER SAXParseException &exc) |
void | fatalError (const XERCES_CPP_NAMESPACE_QUALIFIER SAXParseException &exc) |
void | resetErrors () |
additional file reading | |
int | DocumentSchema |
Schema Version of the document. More... | |
std::string | ProgramVersion |
Version of FreeCAD that wrote this document. More... | |
int | FileVersion |
Version of the file format. More... | |
std::vector< FileEntry > | FileList |
const char * | addFile (const char *Name, Base::Persistence *Object) |
add a read request of a persistent object More... | |
void | readFiles (zipios::ZipInputStream &zipstream) const |
process the requested file writes More... | |
const std::vector< std::string > & | getFilenames () const |
get all registered file names More... | |
bool | isRegistered (Base::Persistence *Object) const |
virtual void | addName (const char *, const char *) |
virtual const char * | getName (const char *) const |
virtual bool | doNameMapping () const |
void | setPartialRestore (bool on) |
sets simultaneously the global and local PartialRestore bits More... | |
void | clearPartialRestoreDocumentObject () |
void | clearPartialRestoreProperty () |
void | clearPartialRestoreObject () |
bool | testStatus (ReaderStatus pos) const |
return the status bits More... | |
void | setStatus (ReaderStatus pos, bool on) |
set the status bits More... | |
bool | read () |
read the next element More... | |
The XML reader class This is an important helper class for the store and retrieval system of objects in FreeCAD.
These classes mainly inherit the App::Persitance base class and implement the Restore() method.
|
protected |
|
protected |
Base::XMLReader::XMLReader | ( | const char * | FileName, |
std::istream & | str | ||
) |
Base::XMLReader::~XMLReader | ( | ) |
const char * Base::XMLReader::addFile | ( | const char * | Name, |
Base::Persistence * | Object | ||
) |
add a read request of a persistent object
References Base::XMLReader::FileEntry::FileName, and Base::XMLReader::FileEntry::Object.
Referenced by Fem::FemMesh::Restore(), Path::Toolpath::Restore(), App::PropertyFileIncluded::Restore(), App::PropertyPythonObject::Restore(), App::VRMLObject::Restore(), Gui::Document::Restore(), Fem::PropertyPostDataObject::Restore(), Inspection::PropertyDistanceList::Restore(), Mesh::PropertyNormalList::Restore(), Mesh::PropertyCurvatureList::Restore(), Mesh::PropertyMeshKernel::Restore(), Part::PropertyPartShape::Restore(), Part::PropertyFilletEdges::Restore(), Path::PropertyPath::Restore(), Points::PointKernel::Restore(), Points::PropertyGreyValueList::Restore(), Points::PropertyNormalList::Restore(), Points::PropertyCurvatureList::Restore(), Points::PropertyPointKernel::Restore(), App::PropertyVectorList::Restore(), App::PropertyPlacementList::Restore(), App::PropertyFloatList::Restore(), App::PropertyColorList::Restore(), and App::PropertyMaterialList::Restore().
|
virtual |
Reimplemented in App::XMLMergeReader, and Gui::XMLMergeReader.
Referenced by App::Document::readObjects().
|
protectedvirtual |
References StrX::c_str().
void Base::XMLReader::clearPartialRestoreDocumentObject | ( | ) |
Referenced by App::Document::readObjects().
void Base::XMLReader::clearPartialRestoreObject | ( | ) |
void Base::XMLReader::clearPartialRestoreProperty | ( | ) |
Referenced by App::PropertyContainer::Restore().
|
virtual |
Reimplemented in App::XMLMergeReader, and Gui::XMLMergeReader.
Referenced by App::PropertyLinkBase::importSubName(), and App::Document::readObjects().
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
References StrX::c_str().
|
protected |
|
protected |
const char * Base::XMLReader::getAttribute | ( | const char * | AttrName | ) | const |
return the named attribute as a double floating point (does type checking)
Referenced by PartDesign::ProfileBased::handleChangedPropertyName(), App::Document::importObjects(), Spreadsheet::PropertySheet::pasteCells(), App::Document::readObjects(), Fem::FemMesh::Restore(), Part::Geometry::Restore(), Path::Command::Restore(), Path::Toolpath::Restore(), Path::Tool::Restore(), Robot::Waypoint::Restore(), TechDraw::CosmeticVertex::Restore(), TechDraw::CosmeticEdge::Restore(), TechDraw::CenterLine::Restore(), TechDraw::GeomFormat::Restore(), TechDraw::Vertex::Restore(), Sketcher::Constraint::Restore(), TechDraw::BaseGeom::Restore(), App::PropertyContainer::Restore(), App::PropertyFileIncluded::Restore(), App::PropertyPythonObject::Restore(), App::PropertyPath::Restore(), App::PropertyEnumeration::Restore(), App::PropertyMap::Restore(), App::PropertyString::Restore(), App::PropertyUUID::Restore(), App::PropertyBool::Restore(), Gui::DocumentItem::ExpandInfo::restore(), Fem::PropertyPostDataObject::Restore(), Inspection::PropertyDistanceList::Restore(), Mesh::PropertyNormalList::Restore(), Mesh::PropertyCurvatureList::Restore(), Mesh::PropertyMeshKernel::Restore(), Part::Box::Restore(), Part::PropertyGeometryList::Restore(), Part::PropertyPartShape::Restore(), Part::PropertyFilletEdges::Restore(), Path::PropertyPath::Restore(), Points::PointKernel::Restore(), Points::PropertyGreyValueList::Restore(), Points::PropertyNormalList::Restore(), Points::PropertyCurvatureList::Restore(), Points::PropertyPointKernel::Restore(), Spreadsheet::PropertyColumnWidths::Restore(), Spreadsheet::PropertyRowHeights::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), TechDraw::PropertyGeomFormatList::Restore(), App::Document::Restore(), App::PropertyExpressionEngine::Restore(), App::PropertyVectorList::Restore(), App::PropertyPlacementList::Restore(), App::PropertyLink::Restore(), App::PropertyLinkList::Restore(), App::PropertyLinkSub::Restore(), App::PropertyLinkSubList::Restore(), App::PropertyXLink::Restore(), App::PropertyXLinkContainer::Restore(), App::PropertyFloatList::Restore(), App::PropertyStringList::Restore(), App::PropertyBoolList::Restore(), App::PropertyColorList::Restore(), App::PropertyMaterialList::Restore(), Spreadsheet::PropertySheet::Restore(), Spreadsheet::Cell::restore(), App::DynamicProperty::restore(), Part::GeometryDefaultExtension< T >::restoreAttributes(), Sketcher::ExternalGeometryExtension::restoreAttributes(), Sketcher::SketchGeometryExtension::restoreAttributes(), and App::ExtensionContainer::restoreExtensions().
double Base::XMLReader::getAttributeAsFloat | ( | const char * | AttrName | ) | const |
return the named attribute as a double floating point (does type checking)
Referenced by MeshCore::MeshInput::LoadXML(), Fem::FemMesh::Restore(), Part::GeomPoint::Restore(), Part::GeomBSplineCurve::Restore(), Part::GeomCircle::Restore(), Part::GeomArcOfCircle::Restore(), Part::GeomEllipse::Restore(), Part::GeomArcOfEllipse::Restore(), Part::GeomHyperbola::Restore(), Part::GeomArcOfHyperbola::Restore(), Part::GeomParabola::Restore(), Part::GeomArcOfParabola::Restore(), Part::GeomLine::Restore(), Part::GeomLineSegment::Restore(), Part::Geom2dPoint::Restore(), Part::Geom2dCircle::Restore(), Part::Geom2dArcOfCircle::Restore(), Part::Geom2dEllipse::Restore(), Part::Geom2dArcOfEllipse::Restore(), Part::Geom2dHyperbola::Restore(), Part::Geom2dArcOfHyperbola::Restore(), Part::Geom2dParabola::Restore(), Part::Geom2dArcOfParabola::Restore(), Part::Geom2dLineSegment::Restore(), Path::Tool::Restore(), Robot::Robot6Axis::Restore(), Robot::Waypoint::Restore(), TechDraw::CosmeticVertex::Restore(), TechDraw::CosmeticEdge::Restore(), TechDraw::CenterLine::Restore(), TechDraw::GeomFormat::Restore(), TechDraw::Vertex::Restore(), Sketcher::Constraint::Restore(), TechDraw::Circle::Restore(), TechDraw::AOC::Restore(), TechDraw::Generic::Restore(), App::PropertyMatrix::Restore(), App::PropertyFloat::Restore(), App::PropertyMaterial::Restore(), Path::PropertyPath::Restore(), App::PropertyExpressionEngine::Restore(), App::PropertyVector::Restore(), App::PropertyPlacement::Restore(), App::PropertyRotation::Restore(), Part::GeometryDefaultExtension< T >::restoreAttributes(), Part::Geom2dConic::RestoreAxis(), and Part::Geom2dArcOfConic::RestoreAxis().
long Base::XMLReader::getAttributeAsInteger | ( | const char * | AttrName | ) | const |
return the named attribute as an interer (does type checking)
Referenced by App::Document::importObjects(), MeshCore::MeshInput::LoadXML(), Spreadsheet::PropertySheet::pasteCells(), App::Document::readObjects(), Part::Geometry::Restore(), Part::GeomBSplineCurve::Restore(), Path::Tooltable::Restore(), Robot::Trajectory::Restore(), Robot::Waypoint::Restore(), TechDraw::CosmeticVertex::Restore(), TechDraw::CosmeticEdge::Restore(), TechDraw::CenterLine::Restore(), TechDraw::GeomFormat::Restore(), TechDraw::Vertex::Restore(), Sketcher::Constraint::Restore(), TechDraw::BaseGeom::Restore(), TechDraw::AOC::Restore(), TechDraw::Generic::Restore(), App::PropertyContainer::Restore(), App::PropertyInteger::Restore(), App::PropertyEnumeration::Restore(), App::PropertyIntegerSet::Restore(), App::PropertyMap::Restore(), App::PropertyString::Restore(), Gui::DocumentItem::ExpandInfo::restore(), Part::Box::Restore(), Part::PropertyGeometryList::Restore(), Path::PropertyPath::Restore(), Spreadsheet::PropertyColumnWidths::Restore(), Spreadsheet::PropertyRowHeights::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), TechDraw::PropertyGeomFormatList::Restore(), App::Document::Restore(), App::PropertyExpressionEngine::Restore(), App::PropertyLinkList::Restore(), App::PropertyLinkSub::Restore(), App::PropertyLinkSubList::Restore(), App::PropertyXLink::Restore(), App::PropertyXLinkSubList::Restore(), App::PropertyIntegerList::Restore(), App::PropertyStringList::Restore(), Sketcher::PropertyConstraintList::Restore(), Spreadsheet::PropertySheet::Restore(), Part::GeometryDefaultExtension< T >::restoreAttributes(), Sketcher::SketchGeometryExtension::restoreAttributes(), and App::ExtensionContainer::restoreExtensions().
unsigned long Base::XMLReader::getAttributeAsUnsigned | ( | const char * | AttrName | ) | const |
unsigned int Base::XMLReader::getAttributeCount | ( | ) | const |
get the number of attributes of the current element
const std::vector< std::string > & Base::XMLReader::getFilenames | ( | ) | const |
get all registered file names
|
virtual |
Reimplemented in App::XMLMergeReader, and Gui::XMLMergeReader.
Referenced by App::PropertyLinkBase::importSubName(), App::Document::readObjects(), App::PropertyString::Restore(), App::PropertyLink::Restore(), App::PropertyLinkList::Restore(), App::PropertyLinkSub::Restore(), App::PropertyLinkSubList::Restore(), and App::PropertyXLink::Restore().
bool Base::XMLReader::hasAttribute | ( | const char * | AttrName | ) | const |
check if the read element has a special attribute
Referenced by App::Document::importObjects(), App::Document::readObjects(), Fem::FemMesh::Restore(), Part::GeomCircle::Restore(), Part::GeomArcOfCircle::Restore(), Part::GeomEllipse::Restore(), Path::Tool::Restore(), Robot::Robot6Axis::Restore(), Gui::DocumentItem::Restore(), Sketcher::Constraint::Restore(), App::PropertyContainer::Restore(), App::PropertyFileIncluded::Restore(), App::PropertyPythonObject::Restore(), App::PropertyEnumeration::Restore(), App::PropertyString::Restore(), Gui::DocumentItem::ExpandInfo::restore(), Fem::PropertyPostDataObject::Restore(), Part::Box::Restore(), Path::PropertyPath::Restore(), Spreadsheet::PropertyColumnWidths::Restore(), Spreadsheet::PropertyRowHeights::Restore(), App::Document::Restore(), App::PropertyExpressionEngine::Restore(), App::PropertyPlacement::Restore(), App::PropertyLinkSub::Restore(), App::PropertyLinkSubList::Restore(), App::PropertyXLink::Restore(), App::PropertyXLinkSubList::Restore(), App::PropertyXLinkContainer::Restore(), App::PropertyColorList::Restore(), App::PropertyMaterialList::Restore(), Spreadsheet::PropertySheet::Restore(), Spreadsheet::Cell::restore(), App::DynamicProperty::restore(), Sketcher::SketchGeometryExtension::restoreAttributes(), and App::ExtensionContainer::restoreExtensions().
|
protectedvirtual |
bool Base::XMLReader::isRegistered | ( | Base::Persistence * | Object | ) | const |
bool Base::XMLReader::isValid | ( | ) | const |
Referenced by Cloud::Module::cloudRestore(), App::Document::restore(), and Base::Persistence::restoreFromStream().
bool Base::XMLReader::isVerbose | ( | ) | const |
int Base::XMLReader::level | ( | ) | const |
get the current element level
Referenced by Gui::DocumentItem::ExpandInfo::restore().
const char * Base::XMLReader::localName | ( | ) | const |
get the local name of the current Element
Referenced by Part::Geometry::Restore(), Part::PropertyGeometryList::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), and TechDraw::PropertyGeomFormatList::Restore().
|
protected |
read the next element
Referenced by gzip_utf8.GzipFile::readline(), and gzip_utf8.GzipFile::seek().
void Base::XMLReader::readBinFile | ( | const char * | filename | ) |
read binary file
References Base::base64_decode().
Referenced by App::PropertyFileIncluded::Restore().
void Base::XMLReader::readCharacters | ( | ) |
read until characters are found
void Base::XMLReader::readElement | ( | const char * | ElementName = nullptr | ) |
read until a start element is found (<name>) or start-end element (<name/>) (with special name if given)
Referenced by PartDesign::ProfileBased::handleChangedPropertyName(), App::Document::importObjects(), MeshCore::MeshInput::LoadXML(), Spreadsheet::PropertySheet::pasteCells(), App::Document::readObjects(), Fem::FemMesh::Restore(), Part::Geometry::Restore(), Part::GeomPoint::Restore(), Part::GeomBSplineCurve::Restore(), Part::GeomCircle::Restore(), Part::GeomArcOfCircle::Restore(), Part::GeomEllipse::Restore(), Part::GeomArcOfEllipse::Restore(), Part::GeomHyperbola::Restore(), Part::GeomArcOfHyperbola::Restore(), Part::GeomParabola::Restore(), Part::GeomArcOfParabola::Restore(), Part::GeomLine::Restore(), Part::GeomLineSegment::Restore(), Part::Geom2dPoint::Restore(), Part::Geom2dCircle::Restore(), Part::Geom2dArcOfCircle::Restore(), Part::Geom2dEllipse::Restore(), Part::Geom2dArcOfEllipse::Restore(), Part::Geom2dHyperbola::Restore(), Part::Geom2dArcOfHyperbola::Restore(), Part::Geom2dParabola::Restore(), Part::Geom2dArcOfParabola::Restore(), Part::Geom2dLineSegment::Restore(), Path::Command::Restore(), Path::Toolpath::Restore(), Path::Tool::Restore(), Path::Tooltable::Restore(), Robot::Robot6Axis::Restore(), Robot::Trajectory::Restore(), Robot::Waypoint::Restore(), TechDraw::CosmeticVertex::Restore(), TechDraw::CosmeticEdge::Restore(), TechDraw::CenterLine::Restore(), TechDraw::GeomFormat::Restore(), TechDraw::Vertex::Restore(), Gui::DocumentItem::Restore(), Sketcher::Constraint::Restore(), TechDraw::BaseGeom::Restore(), TechDraw::Circle::Restore(), TechDraw::AOC::Restore(), TechDraw::Generic::Restore(), App::PropertyContainer::Restore(), App::PropertyFileIncluded::Restore(), App::PropertyMatrix::Restore(), App::PropertyPythonObject::Restore(), App::PropertyInteger::Restore(), App::PropertyPath::Restore(), App::PropertyEnumeration::Restore(), App::PropertyIntegerSet::Restore(), App::PropertyMap::Restore(), App::PropertyFloat::Restore(), App::PropertyString::Restore(), App::PropertyUUID::Restore(), App::PropertyBool::Restore(), App::PropertyColor::Restore(), App::PropertyMaterial::Restore(), Gui::DocumentItem::ExpandInfo::restore(), Fem::PropertyPostDataObject::Restore(), Inspection::PropertyDistanceList::Restore(), Mesh::PropertyNormalList::Restore(), Mesh::PropertyCurvatureList::Restore(), Mesh::PropertyMeshKernel::Restore(), Part::Box::Restore(), Part::PropertyGeometryList::Restore(), Part::PropertyPartShape::Restore(), Part::PropertyFilletEdges::Restore(), Path::PropertyPath::Restore(), Points::PointKernel::Restore(), Points::PropertyGreyValueList::Restore(), Points::PropertyNormalList::Restore(), Points::PropertyCurvatureList::Restore(), Points::PropertyPointKernel::Restore(), Spreadsheet::PropertyColumnWidths::Restore(), Spreadsheet::PropertyRowHeights::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), TechDraw::PropertyGeomFormatList::Restore(), App::Document::Restore(), App::PropertyExpressionEngine::Restore(), App::PropertyVector::Restore(), App::PropertyVectorList::Restore(), App::PropertyPlacement::Restore(), App::PropertyPlacementList::Restore(), App::PropertyRotation::Restore(), App::PropertyLink::Restore(), App::PropertyLinkList::Restore(), App::PropertyLinkSub::Restore(), App::PropertyLinkSubList::Restore(), App::PropertyXLink::Restore(), App::PropertyXLinkSubList::Restore(), App::PropertyXLinkContainer::Restore(), App::PropertyIntegerList::Restore(), App::PropertyFloatList::Restore(), App::PropertyStringList::Restore(), App::PropertyBoolList::Restore(), App::PropertyColorList::Restore(), App::PropertyMaterialList::Restore(), App::PropertyPersistentObject::Restore(), Sketcher::PropertyConstraintList::Restore(), Spreadsheet::PropertySheet::Restore(), App::ExtensionContainer::restoreExtensions(), and Base::Persistence::restoreFromStream().
void Base::XMLReader::readEndElement | ( | const char * | ElementName = nullptr , |
int | level = -1 |
||
) |
read until an end element is found
ElementName | optional end element name to look for. If given, then the parser will read until this name is found. |
level | optional level to look for. If given, then the parser will read until this level. Note that the parse only increase the level when finding a start element, not start-end element, and decrease the level after finding an end element. So, if you obtain the parser level after calling readElement(), you should specify a level minus one when calling this function. This level parameter is only useful if you know the child element may have the same name as its parent, otherwise, using ElementName is enough. |
Referenced by App::Document::importObjects(), MeshCore::MeshInput::LoadXML(), App::Document::readObjects(), Part::Geometry::Restore(), Part::GeomBSplineCurve::Restore(), TechDraw::CenterLine::Restore(), TechDraw::Generic::Restore(), App::PropertyContainer::Restore(), App::PropertyFileIncluded::Restore(), App::PropertyEnumeration::Restore(), App::PropertyIntegerSet::Restore(), App::PropertyMap::Restore(), Gui::DocumentItem::ExpandInfo::restore(), Part::Box::Restore(), Part::PropertyGeometryList::Restore(), Spreadsheet::PropertyColumnWidths::Restore(), Spreadsheet::PropertyRowHeights::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), TechDraw::PropertyGeomFormatList::Restore(), App::Document::Restore(), App::PropertyExpressionEngine::Restore(), App::PropertyLinkList::Restore(), App::PropertyLinkSub::Restore(), App::PropertyLinkSubList::Restore(), App::PropertyXLink::Restore(), App::PropertyXLinkSubList::Restore(), App::PropertyXLinkContainer::Restore(), App::PropertyIntegerList::Restore(), App::PropertyStringList::Restore(), App::PropertyPersistentObject::Restore(), Sketcher::PropertyConstraintList::Restore(), Spreadsheet::PropertySheet::Restore(), and App::ExtensionContainer::restoreExtensions().
void Base::XMLReader::readFiles | ( | zipios::ZipInputStream & | zipstream | ) | const |
process the requested file writes
References Base::Console(), Base::ConsoleSingleton::Error(), Base::Reader::getLocalReader(), Base::Type::getName(), zipios::ZipInputStream::getNextEntry(), and Base::SequencerLauncher::next().
Referenced by App::Document::restore(), and Base::Persistence::restoreFromStream().
|
protectedvirtual |
|
protected |
void Base::XMLReader::setPartialRestore | ( | bool | on | ) |
sets simultaneously the global and local PartialRestore bits
Referenced by Part::GeomLineSegment::Restore(), and App::PropertyContainer::Restore().
void Base::XMLReader::setStatus | ( | ReaderStatus | pos, |
bool | on | ||
) |
set the status bits
void Base::XMLReader::setVerbose | ( | bool | on | ) |
Referenced by App::MergeDocuments::importObjects().
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
References StrX::c_str(), and StrXUTF8::c_str().
bool Base::XMLReader::testStatus | ( | ReaderStatus | pos | ) | const |
return the status bits
Referenced by App::Document::readObjects(), App::PropertyContainer::Restore(), Part::PropertyGeometryList::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), TechDraw::PropertyGeomFormatList::Restore(), and App::Document::restore().
|
protected |
|
protected |
|
protected |
|
protected |
int Base::XMLReader::DocumentSchema |
Schema Version of the document.
Referenced by App::Document::importObjects(), Points::PointKernel::Restore(), Points::PropertyPointKernel::Restore(), and App::Document::Restore().
std::vector<FileEntry> Base::XMLReader::FileList |
|
protected |
int Base::XMLReader::FileVersion |
Version of the file format.
Referenced by App::Document::importObjects(), and App::Document::Restore().
|
protected |
|
protected |
|
protected |
Referenced by XMLReader().
std::string Base::XMLReader::ProgramVersion |
Version of FreeCAD that wrote this document.
Referenced by App::Document::importObjects(), App::Document::Restore(), and App::Document::restore().
enum { ... } Base::XMLReader::ReadType |
|
protected |
|
protected |
Referenced by XMLReader().