#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 43 of file XMLDOMBlock.h.
XMLDOMBlock::XMLDOMBlock | ( | ) |
Definition at line 50 of file XMLDOMBlock.cc.
References init.
XMLDOMBlock::XMLDOMBlock | ( | std::string | xmlFileName | ) |
Definition at line 209 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 65 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 57 of file XMLDOMBlock.cc.
References init.
|
virtual |
DOMElement * XMLDOMBlock::add_element | ( | DOMElement * | parent, |
XMLCh * | tagname, | ||
XMLCh * | value | ||
) |
Definition at line 523 of file XMLDOMBlock.cc.
DOMDocument * XMLDOMBlock::getDocument | ( | void | ) |
Definition at line 312 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 266 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 467 of file XMLDOMBlock.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
const char * XMLDOMBlock::getTagAttribute | ( | const std::string & | tagName, |
const std::string & | attrName, | ||
int | _item = 0 |
||
) |
Definition at line 400 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 350 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 357 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
string XMLDOMBlock::getTimestamp | ( | time_t | _time | ) |
|
protected |
Definition at line 167 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh(), XMLProcessor::getInstance(), and geometryXMLtoCSV::parser.
XMLDOMBlock & XMLDOMBlock::operator+= | ( | const XMLDOMBlock & | other | ) |
Definition at line 35 of file XMLDOMBlock.cc.
References _length, getDocumentConst(), and i.
void XMLDOMBlock::parse | ( | InputSource & | _source | ) |
Definition at line 122 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 408 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 416 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 427 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 435 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 364 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 372 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 382 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 390 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh().
int XMLDOMBlock::write | ( | std::string | target = "stdout" | ) |
Definition at line 322 of file XMLDOMBlock.cc.
References TablePrint::write.
Referenced by WriteL1TriggerObjetsXml::analyze(), XMLLUTLoader::createLoader(), XMLHTRPatternLoader::createLoader(), and pkg.AbstractPkg::generate().
|
friend |
Definition at line 46 of file XMLDOMBlock.h.
|
protected |
Definition at line 97 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 96 of file XMLDOMBlock.h.
|
protected |
Definition at line 95 of file XMLDOMBlock.h.
|
protected |
Definition at line 99 of file XMLDOMBlock.h.
|
protected |
Definition at line 98 of file XMLDOMBlock.h.
|
protected |
Definition at line 94 of file XMLDOMBlock.h.