|
ATLAS Offline Software
|
Go to the documentation of this file.
12 using namespace xercesc;
25 c.GetHandlerStore().RegisterHandler(
this);
37 const std::string&
name)
const
44 const std::string&
name,
bool& isPresent)
const
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());
70 const xercesc::DOMNode*
t,
71 const std::string&
name)
const
75 if (!isPresent) std::abort();
79 const xercesc::DOMNode*
t,
80 const std::string&
name)
const
85 if (!isPresent) std::abort();
86 res=
c.Evaluator().Eval(
temp.c_str());
90 const xercesc::DOMNode*
t,
91 const std::string&
name)
const
96 if (!isPresent) std::abort();
97 res=
c.Evaluator().Eval(
temp.c_str());
101 const xercesc::DOMNode*
t,
102 const std::string&
name)
const
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()));
117 const xercesc::DOMNode*
t,
118 const std::string&
name)
const
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()));
133 const xercesc::DOMNode*
t,
134 const std::string&
name,
bool& isPresent)
const
140 const xercesc::DOMNode*
t,
141 const std::string&
name,
bool& isPresent)
const
147 res=
c.Evaluator().Eval(
temp.c_str());
152 const xercesc::DOMNode*
t,
153 const std::string&
name,
bool& isPresent)
const
159 res=
c.Evaluator().Eval(
temp.c_str());
164 const xercesc::DOMNode*
t,
165 const std::string&
name,
bool& isPresent)
const
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()));
181 const xercesc::DOMNode*
t,
182 const std::string&
name,
bool& isPresent)
const
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()));
198 const xercesc::DOMNode*
t,
199 const std::string&
name,
const std::string& def)
const
203 if (isPresent)
return temp;
207 const xercesc::DOMNode*
t,
208 const std::string&
name,
const double def)
const
215 res=
c.Evaluator().Eval(
temp.c_str());
221 const xercesc::DOMNode*
t,
222 const std::string&
name,
const int def)
const
229 res=
c.Evaluator().Eval(
temp.c_str());
235 const xercesc::DOMNode*
t,
236 const std::string&
name,
const std::vector<double>& def)
const
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()));
254 const xercesc::DOMNode*
t,
255 const std::string&
name,
const std::vector<int>& def)
const
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()));
bool isAttribute(const xercesc::DOMNode *t, const std::string &) const
std::map< std::string, std::string > DOMNamedNodeMap
double getAttributeAsDouble(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::pair< std::vector< unsigned int >, bool > res
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
std::vector< int > getAttributeAsIntVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
XMLHandler(const std::string &n, AGDDController &c)
void RegisterToStore(AGDDController &c)
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
bool IsLoopToBeStopped() const