#include <CalibrationXML.h>
Public Types | |
typedef XERCES_CPP_NAMESPACE::DOMDocument | DOMDocument |
typedef XERCES_CPP_NAMESPACE::DOMElement | DOMElement |
typedef XERCES_CPP_NAMESPACE::DOMNode | DOMNode |
typedef XERCES_CPP_NAMESPACE::HandlerBase | HandlerBase |
typedef XERCES_CPP_NAMESPACE::XercesDOMParser | XercesDOMParser |
typedef XERCES_CPP_NAMESPACE::XMLPlatformUtils | XMLPlatformUtils |
typedef XERCES_CPP_NAMESPACE::XMLString | XMLString |
Public Member Functions | |
DOMElement * | calibrationDOM () |
CalibrationXML () | |
void | closeFile () |
void | openFile (const std::string &xmlFileName) |
void | saveFile (const std::string &xmlFileName) |
~CalibrationXML () | |
Static Public Member Functions | |
static DOMElement * | addChild (DOMNode *dom, const std::string &name) |
template<class T > | |
static T | readAttribute (DOMElement *dom, const std::string &name) |
template<class T > | |
static void | writeAttribute (DOMElement *dom, const std::string &name, const T &value) |
Private Attributes | |
DOMDocument * | doc |
HandlerBase * | errHandler |
DOMElement * | m_calibrationDOM |
std::string | m_xmlFileName |
XercesDOMParser * | parser |
Definition at line 13 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::DOMDocument CalibrationXML::DOMDocument |
Definition at line 16 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::DOMElement CalibrationXML::DOMElement |
Definition at line 17 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::DOMNode CalibrationXML::DOMNode |
Definition at line 18 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::HandlerBase CalibrationXML::HandlerBase |
Definition at line 19 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::XercesDOMParser CalibrationXML::XercesDOMParser |
Definition at line 20 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::XMLPlatformUtils CalibrationXML::XMLPlatformUtils |
Definition at line 21 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::XMLString CalibrationXML::XMLString |
Definition at line 22 of file CalibrationXML.h.
XERCES_CPP_NAMESPACE_USE CalibrationXML::CalibrationXML | ( | ) |
Definition at line 22 of file CalibrationXML.cc.
CalibrationXML::~CalibrationXML | ( | ) |
Definition at line 27 of file CalibrationXML.cc.
References errHandler, parser, and cms::concurrency::xercesTerminate().
|
static |
Helper static function to add a child in a DOM Element with indentation
Definition at line 118 of file CalibrationXML.cc.
References class-composition::child, contentValuesFiles::dom, dataformats::indent(), testEve_cfg::level, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CalibratedHistogramXML::write().
|
inline |
Return the root DOM Element of the opened XML calibration file
Definition at line 48 of file CalibrationXML.h.
References m_calibrationDOM.
Referenced by AlgorithmCalibration< T, CO >::dom().
|
inline |
Definition at line 38 of file CalibrationXML.h.
References errHandler, parser, and cms::concurrency::xercesTerminate().
Referenced by AlgorithmCalibration< T, CO >::AlgorithmCalibration().
void CalibrationXML::openFile | ( | const std::string & | xmlFileName | ) |
Open an XML file
Definition at line 37 of file CalibrationXML.cc.
References dtNoiseDBValidation_cfg::cerr, doc, alignCSCRings::e, errHandler, m_calibrationDOM, m_xmlFileName, parser, cms::concurrency::xercesInitialize(), cms::concurrency::xercesTerminate(), and BuildIsoConfigs::xmlFileName.
Referenced by AlgorithmCalibration< T, CO >::dom().
|
inlinestatic |
Helper static function to read an attribute in a DOM Element
Definition at line 69 of file CalibrationXML.h.
References fetchall_from_DQM_v2::release, and relativeConstraints::value.
void CalibrationXML::saveFile | ( | const std::string & | xmlFileName | ) |
Save DOM to file
Definition at line 108 of file CalibrationXML.cc.
References doc.
|
inlinestatic |
Helper static function to write an attribute in a DOM Element
Definition at line 55 of file CalibrationXML.h.
References fetchall_from_DQM_v2::release, and relativeConstraints::value.
Referenced by CalibratedHistogramXML::write().
|
private |
Definition at line 89 of file CalibrationXML.h.
Referenced by openFile(), and saveFile().
|
private |
Definition at line 90 of file CalibrationXML.h.
Referenced by closeFile(), openFile(), and ~CalibrationXML().
|
private |
Definition at line 88 of file CalibrationXML.h.
Referenced by calibrationDOM(), and openFile().
|
private |
Definition at line 87 of file CalibrationXML.h.
Referenced by openFile().
|
private |
Definition at line 91 of file CalibrationXML.h.
Referenced by closeFile(), openFile(), and ~CalibrationXML().