CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
XMLDOMBlock Class Reference

#include <CalibCalorimetry/HcalTPGAlgos/interface/XMLDOMBlock.h>

Inheritance diagram for XMLDOMBlock:
HcalChannelDataXml HcalHardwareXml HcalTriggerKey LMapLoader LutXml XMLHTRPatternLoader XMLHTRZeroSuppressionLoader XMLLUTLoader XMLRBXPedestalsLoader

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)
 
XMLDOMBlockoperator+= (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
 
XMLProcessortheProcessor
 

Friends

class XMLProcessor
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 42 of file XMLDOMBlock.h.

Constructor & Destructor Documentation

XMLDOMBlock::XMLDOMBlock ( )

Definition at line 50 of file XMLDOMBlock.cc.

XMLDOMBlock::XMLDOMBlock ( std::string  xmlFileName)

Definition at line 209 of file XMLDOMBlock.cc.

XMLDOMBlock::XMLDOMBlock ( XERCES_CPP_NAMESPACE::InputSource &  _source)
XMLDOMBlock::XMLDOMBlock ( std::string  _root,
int  rootElementName 
)

Definition at line 57 of file XMLDOMBlock.cc.

XMLDOMBlock::~XMLDOMBlock ( )
virtual

Definition at line 329 of file XMLDOMBlock.cc.

Member Function Documentation

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  )
DOMDocument * XMLDOMBlock::getDocumentConst ( void  ) const

Definition at line 317 of file XMLDOMBlock.cc.

DOMDocument * XMLDOMBlock::getNewDocument ( std::string  xmlFileName)

Definition at line 266 of file XMLDOMBlock.cc.

std::string & XMLDOMBlock::getString ( void  )

Definition at line 459 of file XMLDOMBlock.cc.

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.

const char* XMLDOMBlock::getTagValue ( const std::string &  tagName,
int  _item = 0,
XERCES_CPP_NAMESPACE::DOMDocument *  _document = NULL 
)
const char* XMLDOMBlock::getTagValue ( const std::string &  tagName,
int  _item,
XERCES_CPP_NAMESPACE::DOMElement *  _document 
)
string XMLDOMBlock::getTimestamp ( time_t  _time)

Definition at line 446 of file XMLDOMBlock.cc.

int XMLDOMBlock::init ( std::string  _root)
protected

Definition at line 167 of file XMLDOMBlock.cc.

XMLDOMBlock & XMLDOMBlock::operator+= ( const XMLDOMBlock other)

Definition at line 35 of file XMLDOMBlock.cc.

void XMLDOMBlock::parse ( XERCES_CPP_NAMESPACE::InputSource &  _source)

Definition at line 122 of file XMLDOMBlock.cc.

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.

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 427 of file XMLDOMBlock.cc.

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 
)
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.

Referenced by WriteL1TriggerObjetsXml::analyze(), and XMLLUTLoader::createLoader().

Friends And Related Function Documentation

friend class XMLProcessor
friend

Definition at line 45 of file XMLDOMBlock.h.

Member Data Documentation

XERCES_CPP_NAMESPACE::DOMDocument* XMLDOMBlock::document
protected
XERCES_CPP_NAMESPACE::ErrorHandler* XMLDOMBlock::errHandler
protected

Definition at line 95 of file XMLDOMBlock.h.

XERCES_CPP_NAMESPACE::XercesDOMParser* XMLDOMBlock::parser
protected

Definition at line 94 of file XMLDOMBlock.h.

std::string* XMLDOMBlock::the_string
protected

Definition at line 98 of file XMLDOMBlock.h.

std::string XMLDOMBlock::theFileName
protected

Definition at line 97 of file XMLDOMBlock.h.

XMLProcessor* XMLDOMBlock::theProcessor
protected

Definition at line 93 of file XMLDOMBlock.h.