ATLAS Offline Software
XercesParser.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XercesParser_H
6 #define XercesParser_H
7 
8 #include <string>
11 class XMLHandlerStore;
12 
13 #include <xercesc/dom/DOM.hpp>
14 #include <xercesc/parsers/XercesDOMParser.hpp>
15 
16 class AGDDController;
17 
18 class XercesParser: public IAGDDParser {
19 public:
21  XercesParser(XMLHandlerStore& xs, const std::string&);
22  virtual ~XercesParser();
23  virtual bool ParseFile(const std::string&) override;
25  const std::string&) override;
26  virtual bool ParseString(const std::string&) override;
28  const std::string&) override;
29  virtual bool WriteToFile(const std::string&) override;
30  virtual void navigateTree(AGDDController& c) override;
31  virtual void elementLoop() override;
32  virtual void elementLoop(AGDDController& c, xercesc::DOMNode*) override;
33  bool Initialize();
34  bool Finalize();
35 private:
36  xercesc::DOMDocument *m_doc;
37  xercesc::XercesDOMParser *m_parser;
40 };
41 
42 #endif
IAGDDParser.h
XercesParser::XercesParser
XercesParser(XMLHandlerStore &xs)
Definition: XercesParser.cxx:33
XMLHandlerStore
Definition: XMLHandlerStore.h:20
XercesParser::ParseFileAndNavigate
virtual bool ParseFileAndNavigate(AGDDController &c, const std::string &) override
Definition: XercesParser.cxx:97
XercesParser
Definition: XercesParser.h:18
IAGDDParser
Definition: IAGDDParser.h:15
XercesParser::m_initialized
bool m_initialized
Definition: XercesParser.h:38
XercesParser::WriteToFile
virtual bool WriteToFile(const std::string &) override
Definition: XercesParser.cxx:156
AGDDController
Definition: AGDDController.h:30
XercesParser::~XercesParser
virtual ~XercesParser()
Definition: XercesParser.cxx:26
XercesParser::navigateTree
virtual void navigateTree(AGDDController &c) override
Definition: XercesParser.cxx:180
XercesParser::m_xs
XMLHandlerStore & m_xs
Definition: XercesParser.h:39
XercesParser::m_doc
xercesc::DOMDocument * m_doc
Definition: XercesParser.h:36
XercesParser::elementLoop
virtual void elementLoop(AGDDController &c, xercesc::DOMNode *) override
XercesParser::ParseStringAndNavigate
virtual bool ParseStringAndNavigate(AGDDController &c, const std::string &) override
Definition: XercesParser.cxx:148
ExpressionEvaluator.h
XercesParser::Finalize
bool Finalize()
Definition: XercesParser.cxx:243
XercesParser::elementLoop
virtual void elementLoop() override
Definition: XercesParser.cxx:193
XercesParser::m_parser
xercesc::XercesDOMParser * m_parser
Definition: XercesParser.h:37
XercesParser::ParseString
virtual bool ParseString(const std::string &) override
Definition: XercesParser.cxx:105
XercesParser::ParseFile
virtual bool ParseFile(const std::string &) override
Definition: XercesParser.cxx:45
python.compressB64.c
def c
Definition: compressB64.py:93
XercesParser::Initialize
bool Initialize()
Definition: XercesParser.cxx:227