Belle II Software light-2406-ragdoll
|
Class to provide an InputContext for a given XML resource name. More...
#include <InputHandler.h>
Public Types | |
typedef InputHandler * | Factory(const std::string &uri) |
Factory function which takes a backend uri and returns an InputHandler instance. | |
Public Member Functions | |
InputHandler (const std::string &uri) | |
Constructor accepting the uri for the InputHandler. | |
virtual | ~InputHandler () |
empty, virtual destructor | |
virtual InputContext * | open (const std::string &path)=0 |
Open an XML resource. | |
Protected Attributes | |
std::string | m_uri |
URI for the InputHandler. | |
Class to provide an InputContext for a given XML resource name.
This class is responsible for opening XML resources on request hand returning an InputContext representing the resource on success
Definition at line 47 of file InputHandler.h.
typedef InputHandler * Factory(const std::string &uri) |
Factory function which takes a backend uri and returns an InputHandler instance.
Definition at line 53 of file InputHandler.h.
|
inlineexplicit |
Constructor accepting the uri for the InputHandler.
The uri is used to specify any parameters for the backend. The content is dependent on the actual InputHandler implementation but could be a base directory, a database host, an archive filename or any combination. Parsing of this string is left to the actual implementation
Definition at line 63 of file InputHandler.h.
|
inlinevirtual |
|
pure virtual |
Open an XML resource.
Open the XML resource specified by path and return an InputContext instance on success.
path | name of the XML resource |
Implemented in FileHandler, and StringHandler.
|
protected |
URI for the InputHandler.
Definition at line 79 of file InputHandler.h.