#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=nullptr) |
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=nullptr) |
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=nullptr) |
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 39 of file XMLDOMBlock.h.
XMLDOMBlock::XMLDOMBlock | ( | ) |
Definition at line 46 of file XMLDOMBlock.cc.
References init.
XMLDOMBlock::XMLDOMBlock | ( | std::string | xmlFileName | ) |
Definition at line 180 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), writedatasetfile::parser, and fetchall_from_DQM_v2::release.
XMLDOMBlock::XMLDOMBlock | ( | XERCES_CPP_NAMESPACE::InputSource & | _source | ) |
XMLDOMBlock::XMLDOMBlock | ( | std::string | _root, |
int | rootElementName | ||
) |
Definition at line 52 of file XMLDOMBlock.cc.
References init.
|
virtual |
DOMElement * XMLDOMBlock::add_element | ( | XERCES_CPP_NAMESPACE::DOMElement * | parent, |
XMLCh * | tagname, | ||
XMLCh * | value | ||
) |
Definition at line 474 of file XMLDOMBlock.cc.
References class-composition::parent, and createPayload::tagname.
DOMDocument * XMLDOMBlock::getDocument | ( | void | ) |
Definition at line 268 of file XMLDOMBlock.cc.
Referenced by XMLLUTLoader::addChecksums(), XMLProcessor::addLMapHBEFDataset(), XMLProcessor::addLMapHODataset(), LutXml::addLut(), XMLLUTLoader::addLUT(), and XMLProcessor::test().
DOMDocument * XMLDOMBlock::getDocumentConst | ( | void | ) | const |
Definition at line 270 of file XMLDOMBlock.cc.
DOMDocument * XMLDOMBlock::getNewDocument | ( | std::string | xmlFileName | ) |
Definition at line 229 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), writedatasetfile::parser, and fetchall_from_DQM_v2::release.
std::string & XMLDOMBlock::getString | ( | void | ) |
Definition at line 419 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 356 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh(), and JetPartonCorrections_cff::tagName.
const char* XMLDOMBlock::getTagValue | ( | const std::string & | tagName, |
int | _item = 0 , |
||
XERCES_CPP_NAMESPACE::DOMDocument * | _document = nullptr |
||
) |
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 142 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh(), XMLProcessor::getInstance(), and writedatasetfile::parser.
XMLDOMBlock & XMLDOMBlock::operator+= | ( | const XMLDOMBlock & | other | ) |
Definition at line 33 of file XMLDOMBlock.cc.
References mps_fire::i, and trackingPlots::other.
void XMLDOMBlock::parse | ( | XERCES_CPP_NAMESPACE::InputSource & | _source | ) |
Definition at line 107 of file XMLDOMBlock.cc.
References gather_cfg::cout, XMLProcessor::getInstance(), writedatasetfile::parser, and fetchall_from_DQM_v2::release.
DOMNode * XMLDOMBlock::setTagAttribute | ( | const std::string & | tagName, |
const std::string & | attrName, | ||
const std::string & | attrValue, | ||
int | _item = 0 |
||
) |
Definition at line 363 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh(), and JetPartonCorrections_cff::tagName.
Referenced by XMLLUTLoader::XMLLUTLoader().
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 388 of file XMLDOMBlock.cc.
References XMLProcessor::_toXMLCh(), and JetPartonCorrections_cff::tagName.
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 = nullptr |
||
) |
Referenced by XMLLUTLoader::addChecksums(), XMLLUTLoader::addLUT(), and XMLLUTLoader::XMLLUTLoader().
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 = nullptr |
||
) |
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 272 of file XMLDOMBlock.cc.
References filterCSVwithJSON::target.
Referenced by XMLLUTLoader::createLoader(), pkg.AbstractPkg::generate(), mergeLUTs(), and querying.connection::write_and_commit().
|
friend |
Definition at line 40 of file XMLDOMBlock.h.
|
protected |
Definition at line 117 of file XMLDOMBlock.h.
Referenced by XMLLUTLoader::addChecksums(), LutXml::addData(), LutXml::addLut(), XMLLUTLoader::addLUT(), LutXml::addParameter(), and LutXml::create_lut_map().
|
protected |
Definition at line 116 of file XMLDOMBlock.h.
|
protected |
Definition at line 115 of file XMLDOMBlock.h.
Referenced by das.DASOptionParser::get_opt(), main.SkeletonOptionParser::get_opt(), and das_client.DASOptionParser::get_opt().
|
protected |
Definition at line 119 of file XMLDOMBlock.h.
|
protected |
Definition at line 118 of file XMLDOMBlock.h.
|
protected |
Definition at line 114 of file XMLDOMBlock.h.