Gui::XMLMergeReader Class Reference
Public Member Functions | |
void addName (const char *s1, const char *s2) | |
bool doNameMapping () const | |
const char * getName (const char *name) const | |
XMLMergeReader (std::map< std::string, std::string > &name, const char *FileName, std::istream &str) | |
![]() | |
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 () | |
const char * localName (void) const | |
get the local name of the current Element More... | |
int level () const | |
get the current element level More... | |
void readElement (const char *ElementName=0) | |
read until a start element is found (<name>) or start-end element (<name/>) (with special name if given) More... | |
void readEndElement (const char *ElementName=0, int level=-1) | |
read until an end element is found More... | |
void readCharacters (void) | |
read until characters are found More... | |
void readBinFile (const char *) | |
read binary file More... | |
unsigned int getAttributeCount (void) 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... | |
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 | |
void setPartialRestore (bool on) | |
sets simultaneously the global and local PartialRestore bits More... | |
void clearPartialRestoreDocumentObject (void) | |
void clearPartialRestoreProperty (void) | |
void clearPartialRestoreObject (void) | |
bool testStatus (ReaderStatus pos) const | |
return the status bits More... | |
void setStatus (ReaderStatus pos, bool on) | |
set the status bits More... | |
Additional Inherited Members | |
![]() | |
enum ReaderStatus { PartialRestore = 0, PartialRestoreInDocumentObject = 1, PartialRestoreInProperty = 2, PartialRestoreInObject = 3 } | |
![]() | |
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 | |
![]() | |
enum { , Chars, StartDocument, EndDocument, StartElement, StartEndElement, EndElement, StartCDATA, EndCDATA } | |
typedef std::map< std::string, std::string > AttrMapType | |
![]() | |
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) | |
virtual void startCDATA () | |
virtual void endCDATA () | |
virtual void resetDocument () | |
bool read (void) | |
read the next element More... | |
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 () | |
![]() | |
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 | |
Constructor & Destructor Documentation
◆ XMLMergeReader()
Gui::XMLMergeReader::XMLMergeReader | ( | std::map< std::string, std::string > & | name, |
const char * | FileName, | ||
std::istream & | str | ||
) |
Member Function Documentation
◆ addName()
|
virtual |
Reimplemented from Base::XMLReader.
◆ doNameMapping()
|
virtual |
Reimplemented from Base::XMLReader.
◆ getName()
|
virtual |
Reimplemented from Base::XMLReader.
The documentation for this class was generated from the following file:
- src/Gui/MergeDocuments.cpp