ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDControl
AGDDControl
XercesParser.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef XercesParser_H
6
#define XercesParser_H
7
8
#include <string>
9
#include <memory>
10
#include "
AGDDControl/ExpressionEvaluator.h
"
11
#include "
AGDDControl/IAGDDParser.h
"
12
class
XMLHandlerStore
;
13
14
#include <xercesc/dom/DOM.hpp>
15
#include <xercesc/parsers/XercesDOMParser.hpp>
16
17
class
AGDDController
;
18
19
class
XercesParser
:
public
IAGDDParser
{
20
public
:
21
XercesParser
(
XMLHandlerStore
& xs);
22
XercesParser
(
XMLHandlerStore
& xs,
const
std::string&);
23
virtual
~XercesParser
();
24
virtual
bool
ParseFile
(
const
std::string&)
override
;
25
virtual
bool
ParseFileAndNavigate
(
AGDDController
& c,
26
const
std::string&)
override
;
27
virtual
bool
ParseString
(
const
std::string&)
override
;
28
virtual
bool
ParseStringAndNavigate
(
AGDDController
& c,
29
const
std::string&)
override
;
30
virtual
bool
WriteToFile
(
const
std::string&)
override
;
31
virtual
void
navigateTree
(
AGDDController
& c)
override
;
32
virtual
void
elementLoop
()
override
;
33
virtual
void
elementLoop
(
AGDDController
& c, xercesc::DOMNode*)
override
;
34
bool
Initialize
();
35
bool
Finalize
();
36
private
:
37
xercesc::DOMDocument *
m_doc
;
38
std::unique_ptr<xercesc::XercesDOMParser>
m_parser
;
39
bool
m_initialized
;
40
XMLHandlerStore
&
m_xs
;
41
};
42
43
#endif
ExpressionEvaluator.h
IAGDDParser.h
AGDDController
Definition
AGDDController.h:30
IAGDDParser::IAGDDParser
IAGDDParser()
Definition
IAGDDParser.h:17
XMLHandlerStore
Definition
XMLHandlerStore.h:20
XercesParser::ParseString
virtual bool ParseString(const std::string &) override
Definition
XercesParser.cxx:103
XercesParser::elementLoop
virtual void elementLoop(AGDDController &c, xercesc::DOMNode *) override
XercesParser::elementLoop
virtual void elementLoop() override
Definition
XercesParser.cxx:191
XercesParser::WriteToFile
virtual bool WriteToFile(const std::string &) override
Definition
XercesParser.cxx:154
XercesParser::ParseFile
virtual bool ParseFile(const std::string &) override
Definition
XercesParser.cxx:43
XercesParser::~XercesParser
virtual ~XercesParser()
Definition
XercesParser.cxx:26
XercesParser::ParseFileAndNavigate
virtual bool ParseFileAndNavigate(AGDDController &c, const std::string &) override
Definition
XercesParser.cxx:95
XercesParser::Initialize
bool Initialize()
Definition
XercesParser.cxx:225
XercesParser::m_doc
xercesc::DOMDocument * m_doc
Definition
XercesParser.h:37
XercesParser::m_xs
XMLHandlerStore & m_xs
Definition
XercesParser.h:40
XercesParser::m_parser
std::unique_ptr< xercesc::XercesDOMParser > m_parser
Definition
XercesParser.h:38
XercesParser::Finalize
bool Finalize()
Definition
XercesParser.cxx:241
XercesParser::navigateTree
virtual void navigateTree(AGDDController &c) override
Definition
XercesParser.cxx:178
XercesParser::XercesParser
XercesParser(XMLHandlerStore &xs)
Definition
XercesParser.cxx:31
XercesParser::ParseStringAndNavigate
virtual bool ParseStringAndNavigate(AGDDController &c, const std::string &) override
Definition
XercesParser.cxx:146
XercesParser::m_initialized
bool m_initialized
Definition
XercesParser.h:39
Generated on
for ATLAS Offline Software by
1.17.0