DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class supporting to read and parse XML documents. More...
#include <DocumentHandler.h>
Public Member Functions | |
DocumentHandler () | |
Default constructor. More... | |
virtual | ~DocumentHandler () |
Default destructor. More... | |
Document | create (const char *tag, const char *comment=0) const |
Create new XML document by parsing empty xml buffer. More... | |
Document | create (const std::string &tag, const std::string &comment) const |
virtual Document | load (const std::string &fname) const |
Load XML file and parse it. More... | |
virtual Document | load (const std::string &fname, UriReader *reader) const |
Load XML file and parse it using URI resolver to read data. More... | |
virtual Document | load (Handle_t base, const XmlChar *fname) const |
Load secondary XML file with relative addressing with respect to handle. More... | |
virtual Document | load (Handle_t base, const XmlChar *fname, UriReader *reader) const |
Load secondary XML file with relative addressing with respect to handle. More... | |
virtual Document | parse (const char *doc_string, size_t length) const |
Parse a standalong XML string into a document. More... | |
virtual Document | parse (const char *doc_string, size_t length, const char *sys_id, UriReader *reader) const |
Parse a standalong XML string into a document using URI resolver to read data. More... | |
virtual int | output (Document doc, const std::string &fname) const |
Write xml document to output file (stdout if file name empty) More... | |
Static Public Member Functions | |
static std::string | defaultComment () |
Default comment string. More... | |
static int | setMinimumPrintLevel (int level) |
Set minimum print level. More... | |
static std::string | system_path (Handle_t base) |
System ID of a given XML entity. More... | |
static std::string | system_path (Handle_t base, const XmlChar *fname) |
System ID of a new XML entity in the same directory as base. More... | |
static std::string | system_path (Handle_t base, const std::string &fname) |
System ID of a new XML entity in the same directory as base. More... | |
static std::string | system_directory (Handle_t base) |
System directory of a given XML entity. More... | |
static std::string | system_directory (Handle_t base, const XmlChar *fname) |
System directory of a new XML entity in the same directory as base. More... | |
Class supporting to read and parse XML documents.
Wrapper object around the document parser. Supports both, XercesC and TiXml.
Definition at line 39 of file DocumentHandler.h.
DocumentHandler::DocumentHandler | ( | ) |
Default constructor.
Default constructor of a document handler using TiXml.
Definition at line 617 of file DocumentHandler.cpp.
|
virtual |
Default destructor.
Default destructor of a document handler using TiXml.
Definition at line 620 of file DocumentHandler.cpp.
Document DocumentHandler::create | ( | const char * | tag, |
const char * | comment = 0 |
||
) | const |
Create new XML document by parsing empty xml buffer.
Definition at line 681 of file DocumentHandler.cpp.
Document DocumentHandler::create | ( | const std::string & | tag, |
const std::string & | comment | ||
) | const |
Definition at line 694 of file DocumentHandler.cpp.
|
static |
Default comment string.
Definition at line 630 of file DocumentHandler.cpp.
|
virtual |
Load XML file and parse it.
Definition at line 646 of file DocumentHandler.cpp.
Load XML file and parse it using URI resolver to read data.
Definition at line 339 of file DocumentHandler.cpp.
Load secondary XML file with relative addressing with respect to handle.
Definition at line 651 of file DocumentHandler.cpp.
|
virtual |
Load secondary XML file with relative addressing with respect to handle.
|
virtual |
Write xml document to output file (stdout if file name empty)
Definition at line 396 of file DocumentHandler.cpp.
|
virtual |
Parse a standalong XML string into a document.
Definition at line 656 of file DocumentHandler.cpp.
|
virtual |
Parse a standalong XML string into a document using URI resolver to read data.
Parse a standalong XML string into a document.
Definition at line 385 of file DocumentHandler.cpp.
|
static |
Set minimum print level.
Definition at line 623 of file DocumentHandler.cpp.
|
static |
System directory of a given XML entity.
Definition at line 674 of file DocumentHandler.cpp.
System directory of a new XML entity in the same directory as base.
System directory of a given XML entity.
Definition at line 667 of file DocumentHandler.cpp.
|
static |
System ID of a given XML entity.
Definition at line 277 of file DocumentHandler.cpp.
|
static |
System ID of a new XML entity in the same directory as base.
System ID of a given XML entity.
Definition at line 264 of file DocumentHandler.cpp.
System ID of a new XML entity in the same directory as base.
System ID of a given XML entity.
Definition at line 661 of file DocumentHandler.cpp.