ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
addmaterialHandler.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDHandlers/addmaterialHandler.h
"
6
7
addmaterialHandler::addmaterialHandler
(
const
std::string& s,
8
AGDDController
& c)
9
:
XMLHandler
(s, c)
10
{
11
}
12
13
void
addmaterialHandler::ElementHandle
(
AGDDController
& c,
14
xercesc::DOMNode *t)
15
{
16
m_names
.push_back (
getAttributeAsString
(c, t,
"material"
));
17
}
18
19
20
std::vector<std::string>
addmaterialHandler::GetNames
()
21
{
22
std::vector<std::string> v;
23
v.swap (
m_names
);
24
return
v;
25
}
addmaterialHandler.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
addmaterialHandler::m_names
std::vector< std::string > m_names
Definition
addmaterialHandler.h:20
addmaterialHandler::addmaterialHandler
addmaterialHandler(const std::string &, AGDDController &c)
Definition
addmaterialHandler.cxx:7
addmaterialHandler::GetNames
std::vector< std::string > GetNames()
Definition
addmaterialHandler.cxx:20
addmaterialHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
addmaterialHandler.cxx:13
Generated on
for ATLAS Offline Software by
1.17.0