#include <CalibCalorimetry/HcalTPGAlgos/interface/XMLDOMBlock.h>
Public Member Functions | |
XERCES_CPP_NAMESPACE::DOMElement * | add_element (XERCES_CPP_NAMESPACE::DOMElement *parent, XMLCh *tagname, XMLCh *value) |
XERCES_CPP_NAMESPACE::DOMDocument * | getDocument (void) |
XERCES_CPP_NAMESPACE::DOMDocument * | getDocumentConst (void) const |
XERCES_CPP_NAMESPACE::DOMDocument * | getNewDocument (std::string xmlFileName) |
std::string & | getString (void) |
std::string & | getString (XERCES_CPP_NAMESPACE::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, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL) |
const char * | getTagValue (const std::string &tagName, int _item, XERCES_CPP_NAMESPACE::DOMElement *_document) |
std::string | getTimestamp (time_t _time) |
XMLDOMBlock & | operator+= (const XMLDOMBlock &other) |
void | parse (XERCES_CPP_NAMESPACE::InputSource &_source) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagAttribute (const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagAttribute (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagAttribute (const std::string &tagName, const std::string &attrName, const int &attrValue, int _item=0) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagAttribute (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const std::string &attrName, const int &attrValue, int _item=0) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagValue (const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagValue (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const std::string &tagValue, int _item=0) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagValue (const std::string &tagName, const int &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL) |
XERCES_CPP_NAMESPACE::DOMNode * | setTagValue (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const int &tagValue, int _item=0) |
int | write (std::string target="stdout") |
XMLDOMBlock () | |
XMLDOMBlock (std::string xmlFileName) | |
XMLDOMBlock (XERCES_CPP_NAMESPACE::InputSource &_source) | |
XMLDOMBlock (std::string _root, int rootElementName) | |
virtual | ~XMLDOMBlock () |
Protected Member Functions | |
int | init (std::string _root) |
Protected Attributes | |
XERCES_CPP_NAMESPACE::DOMDocument * | document |
XERCES_CPP_NAMESPACE::ErrorHandler * | errHandler |
XERCES_CPP_NAMESPACE::XercesDOMParser * | parser |
std::string * | the_string |
std::string | theFileName |
XMLProcessor * | theProcessor |
Friends | |
class | XMLProcessor |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 42 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(), geometryXMLtoCSV::parser, fetchall_from_DQM_v2::release, XERCES_CPP_NAMESPACE_USE::transcode(), and BuildIsoConfigs::xmlFileName.
XMLDOMBlock::XMLDOMBlock | ( | XERCES_CPP_NAMESPACE::InputSource & | _source | ) |
XMLDOMBlock::XMLDOMBlock | ( | std::string | _root, |
int | rootElementName | ||
) |
Definition at line 57 of file XMLDOMBlock.cc.
References init.
|
virtual |
DOMElement * XMLDOMBlock::add_element | ( | XERCES_CPP_NAMESPACE::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(), geometryXMLtoCSV::parser, fetchall_from_DQM_v2::release, XERCES_CPP_NAMESPACE_USE::transcode(), and BuildIsoConfigs::xmlFileName.
std::string & XMLDOMBlock::getString | ( | void | ) |
Definition at line 459 of file XMLDOMBlock.cc.
Referenced by LutXml::getCurrentBrick().
std::string& XMLDOMBlock::getString | ( | XERCES_CPP_NAMESPACE::DOMNode * | _node | ) |
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(), and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by XMLRBXPedestalsLoader::addRBXSlot().
const char* XMLDOMBlock::getTagValue | ( | const std::string & | tagName, |
int | _item = 0 , |
||
XERCES_CPP_NAMESPACE::DOMDocument * | _document = NULL |
||
) |
Referenced by XMLRBXPedestalsLoader::addRBXSlot().
const char* XMLDOMBlock::getTagValue | ( | const std::string & | tagName, |
int | _item, | ||
XERCES_CPP_NAMESPACE::DOMElement * | _document | ||
) |
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 getDocumentConst(), and i.
void XMLDOMBlock::parse | ( | XERCES_CPP_NAMESPACE::InputSource & | _source | ) |
Definition at line 122 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), geometryXMLtoCSV::parser, fetchall_from_DQM_v2::release, and XERCES_CPP_NAMESPACE_USE::transcode().
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().
XERCES_CPP_NAMESPACE::DOMNode* XMLDOMBlock::setTagAttribute | ( | XERCES_CPP_NAMESPACE::DOMElement * | _elem, |
const std::string & | tagName, | ||
const std::string & | attrName, | ||
const std::string & | attrValue, | ||
int | _item = 0 |
||
) |
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().
XERCES_CPP_NAMESPACE::DOMNode* XMLDOMBlock::setTagAttribute | ( | XERCES_CPP_NAMESPACE::DOMElement * | _elem, |
const std::string & | tagName, | ||
const std::string & | attrName, | ||
const int & | attrValue, | ||
int | _item = 0 |
||
) |
XERCES_CPP_NAMESPACE::DOMNode* XMLDOMBlock::setTagValue | ( | const std::string & | tagName, |
const std::string & | tagValue, | ||
int | _item = 0 , |
||
XERCES_CPP_NAMESPACE::DOMDocument * | _document = NULL |
||
) |
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().
XERCES_CPP_NAMESPACE::DOMNode* XMLDOMBlock::setTagValue | ( | XERCES_CPP_NAMESPACE::DOMElement * | _elem, |
const std::string & | tagName, | ||
const std::string & | tagValue, | ||
int | _item = 0 |
||
) |
XERCES_CPP_NAMESPACE::DOMNode* XMLDOMBlock::setTagValue | ( | const std::string & | tagName, |
const int & | tagValue, | ||
int | _item = 0 , |
||
XERCES_CPP_NAMESPACE::DOMDocument * | _document = NULL |
||
) |
XERCES_CPP_NAMESPACE::DOMNode* XMLDOMBlock::setTagValue | ( | XERCES_CPP_NAMESPACE::DOMElement * | _elem, |
const std::string & | tagName, | ||
const int & | tagValue, | ||
int | _item = 0 |
||
) |
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 45 of file XMLDOMBlock.h.
|
protected |
Definition at line 96 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 95 of file XMLDOMBlock.h.
|
protected |
Definition at line 94 of file XMLDOMBlock.h.
|
protected |
Definition at line 98 of file XMLDOMBlock.h.
|
protected |
Definition at line 97 of file XMLDOMBlock.h.
|
protected |
Definition at line 93 of file XMLDOMBlock.h.