ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
importHandler.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDHandlers/importHandler.h
"
6
#include "
AGDDControl/XMLHandler.h
"
7
#include "
AGDDControl/IAGDDParser.h
"
8
#include "
AGDDControl/AGDDController.h
"
9
#include <iostream>
10
11
12
importHandler::importHandler
(
const
std::string& s,
13
AGDDController
& c)
14
:
XMLHandler
(s, c)
15
{
16
}
17
18
void
importHandler::ElementHandle
(
AGDDController
& c,
19
xercesc::DOMNode *t)
20
{
21
std::string filename=
getAttributeAsString
(c, t,
"filename"
);
22
std::cout<<
" trying to parse file "
<<filename<<std::endl;
23
c.GetParser()->ParseFileAndNavigate(c, filename);
24
}
AGDDController.h
IAGDDParser.h
XMLHandler.h
AGDDController
Definition
AGDDController.h:30
XMLHandler::XMLHandler
XMLHandler(const std::string &n, AGDDController &c)
Definition
XMLHandler.cxx:15
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:69
importHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
importHandler.cxx:18
importHandler::importHandler
importHandler(const std::string &, AGDDController &c)
Definition
importHandler.cxx:12
importHandler.h
Generated on
for ATLAS Offline Software by
1.14.0