|
static std::string | get_name (const XMLCoreNode &node, int index) |
|
static int | attribute_number (const XMLCoreNode &node) |
|
static bool | has_attribute (const XMLCoreNode &node, const std::string &name) |
|
static int | get_int (const XMLCoreNode &node, const std::string &name) |
|
static double | get_double (const XMLCoreNode &node, const std::string &name) |
|
static bool | get_boolean (const XMLCoreNode &node, const std::string &name) |
|
static std::string | get_ID (const XMLCoreNode &node, const std::string &name) |
|
static std::string | get_value (const XMLCoreNode &node, const std::string &name) |
|
static std::string | get_token (const XMLCoreNode &node, const std::string &name) |
|
static bool | check_int (const int n, const XMLCoreNode &node, const std::string &name) |
|
static bool | check_double (const int n, const XMLCoreNode &node, const std::string &name) |
|
Definition at line 70 of file IdDictParser.cxx.
◆ attribute_number()
◆ check_double()
Definition at line 243 of file XMLCoreParser.cxx.
251 std::string
t = checkstring +
" " + checkstring;
252 std::istringstream tmpstr (
t.c_str());
253 while (tmpstr.good ()) {
259 std::cerr <<
"XMLCoreFactory::check_double error: (" <<
counter <<
") no " <<
n
260 <<
" doubles in \"" << checkstring <<
"\" for attribute " <<
261 name <<
". exit." << std::endl;
264 if (
name1 !=
"" ) std::cerr <<
"for name=" <<
name << std::endl;
265 if (volume !=
"" ) std::cerr <<
"for volume=" << volume << std::endl;
◆ check_int()
Definition at line 211 of file XMLCoreParser.cxx.
219 std::string
t = checkstring +
" " + checkstring;
220 std::istringstream tmpstr (
t.c_str());
221 while (tmpstr.good ()) {
227 std::cerr <<
"XMLCoreFactory::check_int error: no " <<
n
228 <<
" ints in \"" << checkstring <<
"\" for attribute " <<
229 name <<
". exit." << std::endl;
234 if (nodename !=
"" ) std::cerr <<
"for name=" << nodename << std::endl;
235 if (volume !=
"" ) std::cerr <<
"for volume=" << volume << std::endl;
◆ comment()
Definition at line 82 of file XMLCoreParser.cxx.
84 std::cout <<
"XMLCoreFactory::comment>" << std::endl;
◆ do_comment()
Definition at line 104 of file XMLCoreParser.cxx.
106 std::cout <<
"XMLCoreFactory::do_comment>" << std::endl;
◆ do_end()
◆ do_start()
◆ end()
Definition at line 74 of file XMLCoreParser.cxx.
76 std::cout <<
"XMLCoreFactory::end>" << std::endl;
◆ get_boolean()
◆ get_double()
◆ get_ID()
◆ get_int()
◆ get_name() [1/2]
◆ get_name() [2/2]
◆ get_token()
Definition at line 190 of file XMLCoreParser.cxx.
193 while ((
result.length () > 0) &&
196 while ((
result.length () > 0) &&
199 for (std::string::size_type
i = 0;
i <
result.length (); ++
i){
200 static const std::string uc =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
201 static const std::string
lc =
"abcdefghijklmnopqrstuvwxyz";
203 std::string::size_type
p =
lc.find (
c);
◆ get_value()
Definition at line 154 of file XMLCoreParser.cxx.
156 std::cout <<
"XMLCoreFactory::get_value> name=" <<
name << std::endl;
159 CoreParser::DOMNamedNodeMap::const_iterator
it =
attrs.find (
name);
160 if (
it ==
attrs.end ())
return (
"");
161 std::string
result = (*it).second;
163 std::cout <<
"XMLCoreFactory::get_value>2 value=" <<
result << std::endl;
◆ has_attribute()
◆ idd_end()
◆ idd_start()
Reimplemented from IdDictParserNS::IdDictBaseFactory.
Definition at line 310 of file IdDictParser.cxx.
313 std::cout <<
"RegionFactory::idd_start>" << std::endl;
339 std::string::size_type
pos = 0;
341 std::string::size_type
next;
343 if (
next == std::string::npos)
break;
348 parser.m_region->m_prev_samp_names.push_back (
name);
349 if (
next == std::string::npos) {
359 std::string::size_type
pos = 0;
361 std::string::size_type
next;
364 if (
next == std::string::npos)
break;
370 parser.m_region->m_next_samp_names.push_back (
name);
372 if (
next == std::string::npos) {
382 std::string::size_type
pos = 0;
384 std::string::size_type prev;
385 prev =
names.find_first_not_of (
" ",
pos);
386 if (prev == std::string::npos)
break;
388 prev =
names.find_first_of (
" ",
pos);
391 parser.m_region->m_prev_subdet_names.push_back (
name);
392 if (prev == std::string::npos) {
402 std::string::size_type
pos = 0;
404 std::string::size_type
next;
406 if (
next == std::string::npos)
break;
411 parser.m_region->m_next_subdet_names.push_back (
name);
412 if (
next == std::string::npos) {
442 std::cout <<
"RegionFactory::idd_start> name, group, tag, next eta, prev/next samp, prev/next subdet "
443 <<
parser.m_region->m_name <<
" "
444 <<
parser.m_region->m_group <<
" "
445 <<
parser.m_region->m_tag <<
" "
446 <<
parser.m_region->m_next_abs_eta <<
" ";
447 for (
unsigned int i = 0;
i <
parser.m_region->m_prev_samp_names.size(); ++
i) {
448 std::cout <<
parser.m_region->m_prev_samp_names[
i] <<
" ";
450 for (
unsigned int i = 0;
i <
parser.m_region->m_next_samp_names.size(); ++
i) {
451 std::cout <<
parser.m_region->m_next_samp_names[
i] <<
" ";
453 for (
unsigned int i = 0;
i <
parser.m_region->m_prev_subdet_names.size(); ++
i) {
454 std::cout <<
parser.m_region->m_prev_subdet_names[
i] <<
" ";
456 for (
unsigned int i = 0;
i <
parser.m_region->m_next_subdet_names.size(); ++
i) {
457 std::cout <<
parser.m_region->m_next_subdet_names[
i] <<
" ";
459 std::cout <<
parser.m_region->m_eta0 <<
" "
460 <<
parser.m_region->m_deta <<
" "
461 <<
parser.m_region->m_phi0 <<
" "
462 <<
parser.m_region->m_dphi <<
" "
◆ sibling_number()
◆ start()
Definition at line 66 of file XMLCoreParser.cxx.
68 std::cout <<
"XMLCoreFactory::start> factory=" <<
this << std::endl;
◆ m_xmlelementname
std::string XMLCoreFactory::m_xmlelementname |
|
protectedinherited |
The documentation for this class was generated from the following file: