Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-14 08:15:02

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <XML/UriReader.h>
0016 
0017 /// Default destructor
0018 dd4hep::xml::UriReader::~UriReader()   {
0019 }
0020 
0021 /// Resolve a given URI to a string containing the data
0022 bool dd4hep::xml::UriReader::load(const std::string& system_id, std::string& data)   {
0023   return this->load(system_id, context(), data);
0024 }
0025 
0026 /// Inform reader about a locally (e.g. by XercesC) handled source load
0027 void dd4hep::xml::UriReader::parserLoaded(const std::string& system_id)  {
0028   this->parserLoaded(system_id, context());
0029 }
0030 
0031 /// Default constructor
0032 dd4hep::xml::UriContextReader::UriContextReader(UriReader* reader, UriReader::UserContext* ctxt)
0033   : m_reader(reader), m_context(ctxt)
0034 {
0035 }
0036 
0037 /// Copy constructor
0038 dd4hep::xml::UriContextReader::UriContextReader(const UriContextReader& copy)
0039   : m_reader(copy.m_reader), m_context(copy.m_context)
0040 {
0041 }
0042 
0043 /// Default destructor
0044 dd4hep::xml::UriContextReader::~UriContextReader()   {
0045 }
0046 
0047 /// Add a blocked path entry
0048 void dd4hep::xml::UriContextReader::blockPath(const std::string& path)  {
0049   return m_reader->blockPath(path);
0050 }
0051 
0052 /// Check if a URI path is blocked
0053 bool dd4hep::xml::UriContextReader::isBlocked(const std::string& path)  const  {
0054   return m_reader->isBlocked(path);
0055 }
0056 
0057 /// Resolve a given URI to a string containing the data
0058 bool dd4hep::xml::UriContextReader::load(const std::string& system_id, std::string& data)   {
0059   return m_reader->load(system_id, context(), data);
0060 }
0061 
0062 /// Resolve a given URI to a string containing the data
0063 bool dd4hep::xml::UriContextReader::load(const std::string& system_id, UserContext* ctxt, std::string& data)   {
0064   return m_reader->load(system_id, ctxt, data);
0065 }
0066 
0067 /// Inform reader about a locally (e.g. by XercesC) handled source load
0068 void dd4hep::xml::UriContextReader::parserLoaded(const std::string& system_id)  {
0069   m_reader->parserLoaded(system_id, context());
0070 }
0071 
0072 /// Inform reader about a locally (e.g. by XercesC) handled source load
0073 void dd4hep::xml::UriContextReader::parserLoaded(const std::string& system_id, UserContext* ctxt)  {
0074   m_reader->parserLoaded(system_id, ctxt);
0075 }