DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class supporting to read data given a URI. More...
#include <UriReader.h>
Classes | |
struct | UserContext |
Base class of the user context type chained to the entity resolver. More... | |
Public Member Functions | |
UriReader ()=default | |
Default constructor. More... | |
virtual | ~UriReader () |
Default destructor. More... | |
virtual UserContext * | context ()=0 |
Access to local context. More... | |
virtual void | blockPath (const std::string &) |
Add a blocked path entry. More... | |
virtual bool | isBlocked (const std::string &) const |
Check if a URI path is blocked. More... | |
virtual bool | load (const std::string &system_id, std::string &data) |
Resolve a given URI to a string containing the data. More... | |
virtual bool | load (const std::string &system_id, UserContext *context, std::string &data)=0 |
Resolve a given URI to a string containing the data with context. More... | |
virtual void | parserLoaded (const std::string &system_id) |
Inform reader about a locally (e.g. by XercesC) handled source load. More... | |
virtual void | parserLoaded (const std::string &system_id, UserContext *ctxt)=0 |
Inform reader about a locally (e.g. by XercesC) handled source load. More... | |
Class supporting to read data given a URI.
Interface to use entity resolvers for parsing layered XML documents Currently only supported by the XercesC interface. No support for TinyXML possible.
Definition at line 35 of file UriReader.h.
|
default |
Default constructor.
|
virtual |
Default destructor.
Definition at line 18 of file UriReader.cpp.
|
inlinevirtual |
Add a blocked path entry.
Helpers for selective parsing
Reimplemented in dd4hep::xml::UriContextReader.
Definition at line 59 of file UriReader.h.
|
pure virtual |
Access to local context.
Implemented in dd4hep::xml::UriContextReader.
|
inlinevirtual |
Check if a URI path is blocked.
Reimplemented in dd4hep::xml::UriContextReader.
Definition at line 61 of file UriReader.h.
|
virtual |
Resolve a given URI to a string containing the data.
Reimplemented in dd4hep::xml::UriContextReader.
Definition at line 22 of file UriReader.cpp.
|
pure virtual |
Resolve a given URI to a string containing the data with context.
Implemented in dd4hep::xml::UriContextReader.
|
virtual |
Inform reader about a locally (e.g. by XercesC) handled source load.
Reimplemented in dd4hep::xml::UriContextReader.
Definition at line 27 of file UriReader.cpp.
|
pure virtual |
Inform reader about a locally (e.g. by XercesC) handled source load.
Implemented in dd4hep::xml::UriContextReader.