#include <CalibCalorimetry/HcalTPGAlgos/interface/XMLDOMBlock.h>
Public Member Functions | |
DOMElement * | add_element (DOMElement *parent, XMLCh *tagname, XMLCh *value) |
DOMDocument * | getDocument (void) |
DOMDocument * | getDocumentConst (void) const |
DOMDocument * | getNewDocument (std::string xmlFileName) |
std::string & | getString (void) |
std::string & | getString (DOMNode *_node) |
const char * | getTagAttribute (const std::string &tagName, const std::string &attrName, int _item=0) |
const char * | getTagValue (const std::string &tagName, int _item=0, DOMDocument *_document=NULL) |
const char * | getTagValue (const std::string &tagName, int _item, DOMElement *_document) |
std::string | getTimestamp (time_t _time) |
XMLDOMBlock & | operator+= (const XMLDOMBlock &other) |
void | parse (InputSource &_source) |
DOMNode * | setTagAttribute (const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0) |
DOMNode * | setTagAttribute (DOMElement *_elem, const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0) |
DOMNode * | setTagAttribute (const std::string &tagName, const std::string &attrName, const int &attrValue, int _item=0) |
DOMNode * | setTagAttribute (DOMElement *_elem, const std::string &tagName, const std::string &attrName, const int &attrValue, int _item=0) |
DOMNode * | setTagValue (const std::string &tagName, const std::string &tagValue, int _item=0, DOMDocument *_document=NULL) |
DOMNode * | setTagValue (DOMElement *_elem, const std::string &tagName, const std::string &tagValue, int _item=0) |
DOMNode * | setTagValue (const std::string &tagName, const int &tagValue, int _item=0, DOMDocument *_document=NULL) |
DOMNode * | setTagValue (DOMElement *_elem, const std::string &tagName, const int &tagValue, int _item=0) |
int | write (std::string target="stdout") |
XMLDOMBlock () | |
XMLDOMBlock (std::string xmlFileName) | |
XMLDOMBlock (InputSource &_source) | |
XMLDOMBlock (std::string _root, int rootElementName) | |
virtual | ~XMLDOMBlock () |
Protected Member Functions | |
int | init (std::string _root) |
Protected Attributes | |
DOMDocument * | document |
ErrorHandler * | errHandler |
XercesDOMParser * | parser |
std::string * | the_string |
std::string | theFileName |
XMLProcessor * | theProcessor |
Friends | |
class | XMLProcessor |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 44 of file XMLDOMBlock.h.
XMLDOMBlock::XMLDOMBlock | ( | ) |
Definition at line 51 of file XMLDOMBlock.cc.
References init.
XMLDOMBlock::XMLDOMBlock | ( | std::string | xmlFileName | ) |
Definition at line 210 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), python.rootplot.argparse::message, geometryXMLtoCSV::parser, fetchall_from_DQM_v2::release, and BuildIsoConfigs::xmlFileName.
XMLDOMBlock::XMLDOMBlock | ( | InputSource & | _source | ) |
Definition at line 66 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), python.rootplot.argparse::message, geometryXMLtoCSV::parser, and fetchall_from_DQM_v2::release.
XMLDOMBlock::XMLDOMBlock | ( | std::string | _root, |
int | rootElementName | ||
) |
Definition at line 58 of file XMLDOMBlock.cc.
References init.
|
virtual |
DOMElement * XMLDOMBlock::add_element | ( | DOMElement * | parent, |
XMLCh * | tagname, | ||
XMLCh * | value | ||
) |
Definition at line 524 of file XMLDOMBlock.cc.
DOMDocument * XMLDOMBlock::getDocument | ( | void | ) |
Definition at line 313 of file XMLDOMBlock.cc.
Referenced by HcalTriggerKey::add_data(), XMLLUTLoader::addChecksums(), XMLHTRPatternLoader::addChecksums(), LMapLoader::addLMapHBEFDataset(), LMapLoader::addLMapHODataset(), LutXml::addLut(), XMLLUTLoader::addLUT(), XMLHTRPatternLoader::addPattern(), XMLRBXPedestalsLoader::addRBXSlot(), and XMLHTRZeroSuppressionLoader::addZS().
DOMDocument * XMLDOMBlock::getDocumentConst | ( | void | ) | const |
DOMDocument * XMLDOMBlock::getNewDocument | ( | std::string | xmlFileName | ) |
Definition at line 267 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), python.rootplot.argparse::message, geometryXMLtoCSV::parser, fetchall_from_DQM_v2::release, and BuildIsoConfigs::xmlFileName.
std::string & XMLDOMBlock::getString | ( | void | ) |
std::string & XMLDOMBlock::getString | ( | DOMNode * | _node | ) |
Definition at line 468 of file XMLDOMBlock.cc.
const char * XMLDOMBlock::getTagAttribute | ( | const std::string & | tagName, |
const std::string & | attrName, | ||
int | _item = 0 |
||
) |
Definition at line 401 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
Referenced by XMLRBXPedestalsLoader::addRBXSlot().
const char * XMLDOMBlock::getTagValue | ( | const std::string & | tagName, |
int | _item = 0 , |
||
DOMDocument * | _document = NULL |
||
) |
Definition at line 351 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
Referenced by XMLRBXPedestalsLoader::addRBXSlot().
const char * XMLDOMBlock::getTagValue | ( | const std::string & | tagName, |
int | _item, | ||
DOMElement * | _document | ||
) |
Definition at line 358 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
string XMLDOMBlock::getTimestamp | ( | time_t | _time | ) |
Definition at line 447 of file XMLDOMBlock.cc.
|
protected |
Definition at line 168 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh(), XMLProcessor::getInstance(), and geometryXMLtoCSV::parser.
XMLDOMBlock & XMLDOMBlock::operator+= | ( | const XMLDOMBlock & | other | ) |
Definition at line 36 of file XMLDOMBlock.cc.
References _length, getDocumentConst(), and i.
void XMLDOMBlock::parse | ( | InputSource & | _source | ) |
Definition at line 123 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), python.rootplot.argparse::message, geometryXMLtoCSV::parser, and fetchall_from_DQM_v2::release.
Referenced by HcalTriggerKey::HcalTriggerKey().
DOMNode * XMLDOMBlock::setTagAttribute | ( | const std::string & | tagName, |
const std::string & | attrName, | ||
const std::string & | attrValue, | ||
int | _item = 0 |
||
) |
Definition at line 409 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
Referenced by XMLHTRPatternLoader::XMLHTRPatternLoader(), XMLHTRZeroSuppressionLoader::XMLHTRZeroSuppressionLoader(), XMLLUTLoader::XMLLUTLoader(), and XMLRBXPedestalsLoader::XMLRBXPedestalsLoader().
DOMNode * XMLDOMBlock::setTagAttribute | ( | DOMElement * | _elem, |
const std::string & | tagName, | ||
const std::string & | attrName, | ||
const std::string & | attrValue, | ||
int | _item = 0 |
||
) |
Definition at line 417 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
DOMNode * XMLDOMBlock::setTagAttribute | ( | const std::string & | tagName, |
const std::string & | attrName, | ||
const int & | attrValue, | ||
int | _item = 0 |
||
) |
Definition at line 428 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
DOMNode * XMLDOMBlock::setTagAttribute | ( | DOMElement * | _elem, |
const std::string & | tagName, | ||
const std::string & | attrName, | ||
const int & | attrValue, | ||
int | _item = 0 |
||
) |
Definition at line 436 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
DOMNode * XMLDOMBlock::setTagValue | ( | const std::string & | tagName, |
const std::string & | tagValue, | ||
int | _item = 0 , |
||
DOMDocument * | _document = NULL |
||
) |
Definition at line 365 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
Referenced by HcalTriggerKey::add_data(), XMLLUTLoader::addChecksums(), XMLHTRPatternLoader::addChecksums(), XMLLUTLoader::addLUT(), XMLHTRPatternLoader::addPattern(), XMLRBXPedestalsLoader::addRBXSlot(), XMLHTRZeroSuppressionLoader::addZS(), XMLHTRPatternLoader::XMLHTRPatternLoader(), XMLHTRZeroSuppressionLoader::XMLHTRZeroSuppressionLoader(), XMLLUTLoader::XMLLUTLoader(), and XMLRBXPedestalsLoader::XMLRBXPedestalsLoader().
DOMNode * XMLDOMBlock::setTagValue | ( | DOMElement * | _elem, |
const std::string & | tagName, | ||
const std::string & | tagValue, | ||
int | _item = 0 |
||
) |
Definition at line 373 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
DOMNode * XMLDOMBlock::setTagValue | ( | const std::string & | tagName, |
const int & | tagValue, | ||
int | _item = 0 , |
||
DOMDocument * | _document = NULL |
||
) |
Definition at line 383 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
DOMNode * XMLDOMBlock::setTagValue | ( | DOMElement * | _elem, |
const std::string & | tagName, | ||
const int & | tagValue, | ||
int | _item = 0 |
||
) |
Definition at line 391 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
int XMLDOMBlock::write | ( | std::string | target = "stdout" | ) |
Definition at line 323 of file XMLDOMBlock.cc.
References TablePrint::write.
Referenced by WriteL1TriggerObjetsXml::analyze(), XMLLUTLoader::createLoader(), and XMLHTRPatternLoader::createLoader().
|
friend |
Definition at line 47 of file XMLDOMBlock.h.
|
protected |
Definition at line 98 of file XMLDOMBlock.h.
Referenced by HcalTriggerKey::add_data(), XMLLUTLoader::addChecksums(), XMLHTRPatternLoader::addChecksums(), LutXml::addData(), LMapLoader::addLMapHBEFDataset(), LMapLoader::addLMapHODataset(), LutXml::addLut(), XMLLUTLoader::addLUT(), LutXml::addParameter(), HcalHardwareXml::addPart(), XMLHTRPatternLoader::addPattern(), XMLRBXPedestalsLoader::addRBXSlot(), XMLHTRZeroSuppressionLoader::addZS(), LutXml::create_lut_map(), LMapLoader::createLMapHBEFXMLBase(), and HcalHardwareXml::HcalHardwareXml().
|
protected |
Definition at line 97 of file XMLDOMBlock.h.
|
protected |
Definition at line 96 of file XMLDOMBlock.h.
|
protected |
Definition at line 100 of file XMLDOMBlock.h.
|
protected |
Definition at line 99 of file XMLDOMBlock.h.
|
protected |
Definition at line 95 of file XMLDOMBlock.h.