DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | List of all members
dd4hep::json::DocumentHandler Class Reference

Class supporting to read and parse XML documents. More...

#include <DocumentHandler.h>

Public Member Functions

 DocumentHandler ()
 Default constructor. More...
 
virtual ~DocumentHandler ()
 Default destructor. More...
 
virtual Document load (const std::string &fname) const
 Load XML file and parse it. More...
 
virtual Document parse (const char *doc_string, size_t length) const
 Parse a standalong XML string into a document. More...
 

Detailed Description

Class supporting to read and parse XML documents.

Wrapper object around the document parser.

Author
M.Frank
Version
1.0

Definition at line 33 of file DocumentHandler.h.

Constructor & Destructor Documentation

◆ DocumentHandler()

DocumentHandler::DocumentHandler ( )

Default constructor.

Definition at line 27 of file DocumentHandler.cpp.

◆ ~DocumentHandler()

DocumentHandler::~DocumentHandler ( )
virtual

Default destructor.

Definition at line 31 of file DocumentHandler.cpp.

Member Function Documentation

◆ load()

Document DocumentHandler::load ( const std::string &  fname) const
virtual

Load XML file and parse it.

Definition at line 35 of file DocumentHandler.cpp.

◆ parse()

Document DocumentHandler::parse ( const char *  doc_string,
size_t  length 
) const
virtual

Parse a standalong XML string into a document.

Definition at line 47 of file DocumentHandler.cpp.


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