|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef XML_URIREADER_H
14 #define XML_URIREADER_H
58 virtual void blockPath(
const std::string& ) {}
61 virtual bool isBlocked(
const std::string& )
const {
return false; }
63 virtual bool load(
const std::string& system_id, std::string& data);
99 virtual void blockPath(
const std::string& path)
override;
102 virtual bool isBlocked(
const std::string& path)
const override;
104 virtual bool load(
const std::string& system_id, std::string& data)
override;
106 virtual bool load(
const std::string& system_id, UserContext*
context, std::string& data)
override;
108 virtual void parserLoaded(
const std::string& system_id)
override;
110 virtual void parserLoaded(
const std::string& system_id, UserContext* ctxt)
override;
115 #endif // XML_URIREADER_H
virtual void blockPath(const std::string &)
Add a blocked path entry.
Class supporting to read data given a URI.
virtual bool isBlocked(const std::string &) const
Check if a URI path is blocked.
virtual bool load(const std::string &system_id, std::string &data)
Resolve a given URI to a string containing the data.
virtual UserContext * context() override
Access to local context.
virtual ~UriContextReader()
Default destructor.
virtual void parserLoaded(const std::string &system_id, UserContext *ctxt)=0
Inform reader about a locally (e.g. by XercesC) handled source load.
UriContextReader(UriReader *reader, UriReader::UserContext *ctxt)
Default initializing constructor.
virtual void parserLoaded(const std::string &system_id)
Inform reader about a locally (e.g. by XercesC) handled source load.
UriReader * m_reader
Pointer to true reader object.
virtual ~UserContext()=default
UriReader::UserContext * m_context
Pointer to user context.
UriReader()=default
Default constructor.
Namespace for the AIDA detector description toolkit supporting XML utilities.
virtual void parserLoaded(const std::string &system_id) override
Inform reader about a locally (e.g. by XercesC) handled source load.
virtual bool load(const std::string &system_id, std::string &data) override
Resolve a given URI to a string containing the data.
virtual ~UriReader()
Default destructor.
Class supporting to read data given a URI.
Namespace for the AIDA detector description toolkit.
UserContext(const UserContext &)=default
virtual void blockPath(const std::string &path) override
Add a blocked path entry.
virtual bool isBlocked(const std::string &path) const override
Check if a URI path is blocked.
Base class of the user context type chained to the entity resolver.
virtual UserContext * context()=0
Access to local context.
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.