DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class supporting to read data given a URI. More...
#include <UriReader.h>
Public Member Functions | |
UriContextReader (UriReader *reader, UriReader::UserContext *ctxt) | |
Default initializing constructor. More... | |
UriContextReader (const UriContextReader ©) | |
Copy constructor. More... | |
virtual | ~UriContextReader () |
Default destructor. More... | |
virtual UserContext * | context () override |
Access to local context. More... | |
virtual void | blockPath (const std::string &path) override |
Add a blocked path entry. More... | |
virtual bool | isBlocked (const std::string &path) const override |
Check if a URI path is blocked. More... | |
virtual bool | load (const std::string &system_id, std::string &data) override |
Resolve a given URI to a string containing the data. More... | |
virtual bool | load (const std::string &system_id, UserContext *context, std::string &data) override |
Resolve a given URI to a string containing the data with context. More... | |
virtual void | parserLoaded (const std::string &system_id) override |
Inform reader about a locally (e.g. by XercesC) handled source load. More... | |
virtual void | parserLoaded (const std::string &system_id, UserContext *ctxt) override |
Inform reader about a locally (e.g. by XercesC) handled source load. More... | |
Public Member Functions inherited from dd4hep::xml::UriReader | |
UriReader ()=default | |
Default constructor. More... | |
virtual | ~UriReader () |
Default destructor. More... | |
Protected Attributes | |
UriReader * | m_reader |
Pointer to true reader object. More... | |
UriReader::UserContext * | m_context |
Pointer to user context. More... | |
Class supporting to read data given a URI.
Wrapper to read XML URI using a virtual reader instance. This implementation allows to externally chain an argument structure to the resolution function, which allows to set/retrieve further arguments such as e.g. conditions IOVs.
Definition at line 83 of file UriReader.h.
dd4hep::xml::UriContextReader::UriContextReader | ( | UriReader * | reader, |
UriReader::UserContext * | ctxt | ||
) |
dd4hep::xml::UriContextReader::UriContextReader | ( | const UriContextReader & | copy | ) |
Copy constructor.
Definition at line 38 of file UriReader.cpp.
|
virtual |
Default destructor.
Definition at line 44 of file UriReader.cpp.
|
overridevirtual |
Add a blocked path entry.
Helpers for selective parsing
Reimplemented from dd4hep::xml::UriReader.
Definition at line 48 of file UriReader.cpp.
|
inlineoverridevirtual |
Access to local context.
Implements dd4hep::xml::UriReader.
Definition at line 97 of file UriReader.h.
|
overridevirtual |
Check if a URI path is blocked.
Reimplemented from dd4hep::xml::UriReader.
Definition at line 53 of file UriReader.cpp.
|
overridevirtual |
Resolve a given URI to a string containing the data.
Reimplemented from dd4hep::xml::UriReader.
Definition at line 58 of file UriReader.cpp.
|
overridevirtual |
Resolve a given URI to a string containing the data with context.
Resolve a given URI to a string containing the data.
Implements dd4hep::xml::UriReader.
Definition at line 63 of file UriReader.cpp.
|
overridevirtual |
Inform reader about a locally (e.g. by XercesC) handled source load.
Reimplemented from dd4hep::xml::UriReader.
Definition at line 68 of file UriReader.cpp.
|
overridevirtual |
Inform reader about a locally (e.g. by XercesC) handled source load.
Implements dd4hep::xml::UriReader.
Definition at line 73 of file UriReader.cpp.
|
protected |
Pointer to user context.
Definition at line 88 of file UriReader.h.
|
protected |
Pointer to true reader object.
Definition at line 86 of file UriReader.h.