DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
UriReader.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <XML/UriReader.h>
16 
19 }
20 
22 bool dd4hep::xml::UriReader::load(const std::string& system_id, std::string& data) {
23  return this->load(system_id, context(), data);
24 }
25 
27 void dd4hep::xml::UriReader::parserLoaded(const std::string& system_id) {
28  this->parserLoaded(system_id, context());
29 }
30 
33  : m_reader(reader), m_context(ctxt)
34 {
35 }
36 
39  : m_reader(copy.m_reader), m_context(copy.m_context)
40 {
41 }
42 
45 }
46 
48 void dd4hep::xml::UriContextReader::blockPath(const std::string& path) {
49  return m_reader->blockPath(path);
50 }
51 
53 bool dd4hep::xml::UriContextReader::isBlocked(const std::string& path) const {
54  return m_reader->isBlocked(path);
55 }
56 
58 bool dd4hep::xml::UriContextReader::load(const std::string& system_id, std::string& data) {
59  return m_reader->load(system_id, context(), data);
60 }
61 
63 bool dd4hep::xml::UriContextReader::load(const std::string& system_id, UserContext* ctxt, std::string& data) {
64  return m_reader->load(system_id, ctxt, data);
65 }
66 
68 void dd4hep::xml::UriContextReader::parserLoaded(const std::string& system_id) {
69  m_reader->parserLoaded(system_id, context());
70 }
71 
73 void dd4hep::xml::UriContextReader::parserLoaded(const std::string& system_id, UserContext* ctxt) {
74  m_reader->parserLoaded(system_id, ctxt);
75 }
dd4hep::xml::UriReader::blockPath
virtual void blockPath(const std::string &)
Add a blocked path entry.
Definition: UriReader.h:59
UriReader.h
dd4hep::xml::UriContextReader
Class supporting to read data given a URI.
Definition: UriReader.h:83
dd4hep::xml::UriReader::isBlocked
virtual bool isBlocked(const std::string &) const
Check if a URI path is blocked.
Definition: UriReader.h:61
dd4hep::xml::UriReader::load
virtual bool load(const std::string &system_id, std::string &data)
Resolve a given URI to a string containing the data.
Definition: UriReader.cpp:22
dd4hep::xml::UriContextReader::~UriContextReader
virtual ~UriContextReader()
Default destructor.
Definition: UriReader.cpp:44
dd4hep::xml::UriContextReader::UriContextReader
UriContextReader(UriReader *reader, UriReader::UserContext *ctxt)
Default initializing constructor.
Definition: UriReader.cpp:32
dd4hep::xml::UriReader::parserLoaded
virtual void parserLoaded(const std::string &system_id)
Inform reader about a locally (e.g. by XercesC) handled source load.
Definition: UriReader.cpp:27
m_reader
UriReader * m_reader
Pointer to URI reader.
Definition: DocumentHandler.cpp:155
dd4hep::xml::UriContextReader::parserLoaded
virtual void parserLoaded(const std::string &system_id) override
Inform reader about a locally (e.g. by XercesC) handled source load.
Definition: UriReader.cpp:68
dd4hep::xml::UriContextReader::load
virtual bool load(const std::string &system_id, std::string &data) override
Resolve a given URI to a string containing the data.
Definition: UriReader.cpp:58
dd4hep::xml::UriReader::~UriReader
virtual ~UriReader()
Default destructor.
Definition: UriReader.cpp:18
dd4hep::xml::UriReader
Class supporting to read data given a URI.
Definition: UriReader.h:35
dd4hep::xml::UriContextReader::blockPath
virtual void blockPath(const std::string &path) override
Add a blocked path entry.
Definition: UriReader.cpp:48
dd4hep::xml::UriContextReader::isBlocked
virtual bool isBlocked(const std::string &path) const override
Check if a URI path is blocked.
Definition: UriReader.cpp:53
dd4hep::detail::tools::copy
void copy(Alignment from, Alignment to)
Copy alignment object from source object.
Definition: AlignmentTools.cpp:43
dd4hep::xml::UriReader::UserContext
Base class of the user context type chained to the entity resolver.
Definition: UriReader.h:45