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)
 
- Public Member Functions inherited from Base::XMLReader
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 () 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...
 
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...
 
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 clearPartialRestoreProperty ()
 
void clearPartialRestoreObject ()
 
bool testStatus (ReaderStatus pos) const
 return the status bits More...
 
void setStatus (ReaderStatus pos, bool on)
 set the status bits More...
 

Additional Inherited Members

- Public Types inherited from Base::XMLReader
enum  ReaderStatus { PartialRestore = 0 , PartialRestoreInDocumentObject = 1 , PartialRestoreInProperty = 2 , PartialRestoreInObject = 3 }
 
- Public Attributes inherited from Base::XMLReader
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< FileEntryFileList
 
- Protected Types inherited from Base::XMLReader
enum  {
}
 
typedef std::map< std::string, std::string > AttrMapType
 
- Protected Member Functions inherited from Base::XMLReader
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 ()
 
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 ()
 
bool read ()
 read the next element More...
 
- Protected Attributes inherited from Base::XMLReader
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()

void Gui::XMLMergeReader::addName ( const char *  s1,
const char *  s2 
)
virtual

Reimplemented from Base::XMLReader.

◆ doNameMapping()

bool Gui::XMLMergeReader::doNameMapping ( ) const
virtual

Reimplemented from Base::XMLReader.

◆ getName()

const char * Gui::XMLMergeReader::getName ( const char *  name) const
virtual

Reimplemented from Base::XMLReader.


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