#include <XMLHandler.h>
Inherited by addmaterialHandler, AGDDHandler, aliasHandler, arrayHandler, BoltHandler, boxHandler, chamberPositionerHandler, colorHandler, compositeHandler, compositionHandler, consHandler, defaultsHandler, elcylHandler, elementHandler, foreachHandler, fractionmassHandler, gvxy_pointHandler, gvxyHandler, gvxysxHandler, gvxysxyHandler, IbeamHandler, importHandler, intersectionHandler, materialHandler, materialsHandler, micromegasHandler, mm_readoutHandler, mm_TechHandler, mmSpacer_TechHandler, mmSpacerHandler, mposPhiHandler, mposWedgeHandler, msgHandler, muonStationHandler, natomsHandler, pconHandler, pgonHandler, polyplaneHandler, posRPhiZHandler, posXYZHandler, ringHandler, sectionHandler, sectorHandler, snake_pointHandler, snakeHandler, sTGC_readoutHandler, sTGC_TechHandler, sTGCHandler, subtractionHandler, trdHandler, tubsHandler, UbeamHandler, unionHandler, varHandler, and versionHandler.
|
bool | isAttribute (const xercesc::DOMNode *t, const std::string &) const |
|
std::string | getAttribute (const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::string | getAttributeAsString (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
double | getAttributeAsDouble (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
int | getAttributeAsInt (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
std::vector< double > | getAttributeAsVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
std::vector< int > | getAttributeAsIntVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
std::string | getAttributeAsString (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
double | getAttributeAsDouble (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
int | getAttributeAsInt (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::vector< double > | getAttributeAsVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::vector< int > | getAttributeAsIntVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::string | getAttributeAsString (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const std::string &) const |
|
double | getAttributeAsDouble (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const double) const |
|
int | getAttributeAsInt (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const int) const |
|
std::vector< double > | getAttributeAsVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const std::vector< double > &) const |
|
std::vector< int > | getAttributeAsIntVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const std::vector< int > &) const |
|
Definition at line 15 of file XMLHandler.h.
◆ XMLHandler()
◆ ~XMLHandler()
virtual XMLHandler::~XMLHandler |
( |
| ) |
|
|
inlinevirtual |
◆ ElementHandle()
virtual void XMLHandler::ElementHandle |
( |
AGDDController & |
c, |
|
|
xercesc::DOMNode * |
t |
|
) |
| |
|
pure virtual |
Implemented in snake_pointHandler, micromegasHandler, sTGCHandler, colorHandler, elementHandler, importHandler, chamberPositionerHandler, gvxy_pointHandler, materialHandler, polyplaneHandler, posRPhiZHandler, posXYZHandler, snakeHandler, subtractionHandler, trdHandler, tubsHandler, addmaterialHandler, aliasHandler, arrayHandler, BoltHandler, boxHandler, compositeHandler, compositionHandler, consHandler, defaultsHandler, elcylHandler, foreachHandler, fractionmassHandler, gvxyHandler, gvxysxHandler, gvxysxyHandler, IbeamHandler, intersectionHandler, materialsHandler, mposPhiHandler, mposWedgeHandler, msgHandler, natomsHandler, pconHandler, pgonHandler, ringHandler, sectionHandler, sectorHandler, UbeamHandler, unionHandler, varHandler, versionHandler, mm_readoutHandler, mm_TechHandler, mmSpacer_TechHandler, mmSpacerHandler, muonStationHandler, sTGC_readoutHandler, sTGC_TechHandler, and AGDDHandler.
◆ getAttribute()
std::string XMLHandler::getAttribute |
( |
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protected |
Definition at line 43 of file XMLHandler.cxx.
46 std::string retValue=
"";
48 if (
t->hasAttributes()) {
51 std::unique_ptr<XMLCh[], decltype(deleter)>
ptr(XMLString::transcode(
name.c_str()), deleter);
52 DOMAttr *pAttributeNode = (DOMAttr*) pAttributes->getNamedItem(
ptr.get());
55 char*
val=XMLString::transcode(pAttributeNode->getValue());
◆ getAttributeAsDouble() [1/3]
double XMLHandler::getAttributeAsDouble |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protected |
◆ getAttributeAsDouble() [2/3]
double XMLHandler::getAttributeAsDouble |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protected |
◆ getAttributeAsDouble() [3/3]
◆ getAttributeAsInt() [1/3]
◆ getAttributeAsInt() [2/3]
int XMLHandler::getAttributeAsInt |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protected |
◆ getAttributeAsInt() [3/3]
◆ getAttributeAsIntVector() [1/3]
std::vector< int > XMLHandler::getAttributeAsIntVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protected |
Definition at line 116 of file XMLHandler.cxx.
121 std::vector<int> vect;
123 if (!isPresent) std::abort();
124 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
125 for (
unsigned int i=0;
i<
v.size();
i++)
127 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsIntVector() [2/3]
std::vector< int > XMLHandler::getAttributeAsIntVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protected |
Definition at line 180 of file XMLHandler.cxx.
184 std::vector<int> vect;
188 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
189 for (
unsigned int i=0;
i<
v.size();
i++)
191 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsIntVector() [3/3]
std::vector< int > XMLHandler::getAttributeAsIntVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
const std::vector< int > & |
def |
|
) |
| const |
|
protected |
Definition at line 253 of file XMLHandler.cxx.
258 std::vector<int> vect;
262 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
263 for (
unsigned int i=0;
i<
v.size();
i++)
265 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsString() [1/3]
std::string XMLHandler::getAttributeAsString |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protected |
◆ getAttributeAsString() [2/3]
std::string XMLHandler::getAttributeAsString |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protected |
◆ getAttributeAsString() [3/3]
std::string XMLHandler::getAttributeAsString |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
const std::string & |
def |
|
) |
| const |
|
protected |
◆ getAttributeAsVector() [1/3]
std::vector< double > XMLHandler::getAttributeAsVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protected |
Definition at line 100 of file XMLHandler.cxx.
105 std::vector<double> vect;
107 if (!isPresent) std::abort();
108 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
109 for (
unsigned int i=0;
i<
v.size();
i++)
111 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsVector() [2/3]
std::vector< double > XMLHandler::getAttributeAsVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protected |
Definition at line 163 of file XMLHandler.cxx.
167 std::vector<double> vect;
171 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
172 for (
unsigned int i=0;
i<
v.size();
i++)
174 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsVector() [3/3]
std::vector< double > XMLHandler::getAttributeAsVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
const std::vector< double > & |
def |
|
) |
| const |
|
protected |
Definition at line 234 of file XMLHandler.cxx.
239 std::vector<double> vect;
243 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
244 for (
unsigned int i=0;
i<
v.size();
i++)
246 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ GetName()
const std::string& XMLHandler::GetName |
( |
| ) |
const |
|
inline |
◆ Handle()
virtual void XMLHandler::Handle |
( |
AGDDController & |
c, |
|
|
xercesc::DOMNode * |
t |
|
) |
| |
|
inlinevirtual |
◆ isAttribute()
bool XMLHandler::isAttribute |
( |
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protected |
◆ IsLoopToBeStopped()
bool XMLHandler::IsLoopToBeStopped |
( |
| ) |
const |
◆ RegisterToStore()
Definition at line 23 of file XMLHandler.cxx.
25 c.GetHandlerStore().RegisterHandler(
this);
◆ StopLoop()
void XMLHandler::StopLoop |
( |
bool |
v | ) |
|
◆ m_name
std::string XMLHandler::m_name |
|
protected |
◆ m_stopLoop
bool XMLHandler::m_stopLoop |
|
protected |
The documentation for this class was generated from the following files: