DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UriReader.cpp
Go to the documentation of this file.
1 // $Id$
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 
15 // Framework include files
16 #include "XML/UriReader.h"
17 
20 }
21 
23 bool DD4hep::XML::UriReader::load(const std::string& system_id, std::string& data) {
24  return this->load(system_id, context(), data);
25 }
26 
28 void DD4hep::XML::UriReader::parserLoaded(const std::string& system_id) {
29  this->parserLoaded(system_id, context());
30 }
31 
34  : m_reader(reader), m_context(ctxt)
35 {
36 }
37 
40  : m_reader(copy.m_reader), m_context(copy.m_context)
41 {
42 }
43 
46 }
47 
49 bool DD4hep::XML::UriContextReader::load(const std::string& system_id, std::string& data) {
50  return m_reader->load(system_id, context(), data);
51 }
52 
54 bool DD4hep::XML::UriContextReader::load(const std::string& system_id, UserContext* ctxt, std::string& data) {
55  return m_reader->load(system_id, ctxt, data);
56 }
57 
59 void DD4hep::XML::UriContextReader::parserLoaded(const std::string& system_id) {
60  m_reader->parserLoaded(system_id, context());
61 }
62 
64 void DD4hep::XML::UriContextReader::parserLoaded(const std::string& system_id, UserContext* ctxt) {
65  m_reader->parserLoaded(system_id, ctxt);
66 }
virtual bool load(const std::string &system_id, std::string &data)
Resolve a given URI to a string containing the data.
Definition: UriReader.cpp:23
void copy(Alignment from, Alignment to)
Copy alignment object from source object.
static pair< TClass *, void * > load(TBranch *branch, int entry)
Class supporting to read data given a URI.
Definition: UriReader.h:36
Class supporting to read data given a URI.
Definition: UriReader.h:71
virtual void parserLoaded(const std::string &system_id)
Inform reader about a locally (e.g. by XercesC) handled source load.
Definition: UriReader.cpp:28
virtual ~UriReader()
Default destructor.
Definition: UriReader.cpp:19
virtual bool load(const std::string &system_id, std::string &data)
Resolve a given URI to a string containing the data.
Definition: UriReader.cpp:49
UriContextReader(UriReader *reader, UriReader::UserContext *ctxt)
Default initializing constructor.
Definition: UriReader.cpp:33
UriReader * m_reader
Pointer to URI reader.
virtual void parserLoaded(const std::string &system_id)
Inform reader about a locally (e.g. by XercesC) handled source load.
Definition: UriReader.cpp:59
virtual ~UriContextReader()
Default destructor.
Definition: UriReader.cpp:45