#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 15 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::DOMElement CalibrationXML::DOMElement |
Definition at line 16 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::DOMNode CalibrationXML::DOMNode |
Definition at line 17 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::HandlerBase CalibrationXML::HandlerBase |
Definition at line 18 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::XercesDOMParser CalibrationXML::XercesDOMParser |
Definition at line 19 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::XMLPlatformUtils CalibrationXML::XMLPlatformUtils |
Definition at line 20 of file CalibrationXML.h.
typedef XERCES_CPP_NAMESPACE::XMLString CalibrationXML::XMLString |
Definition at line 21 of file CalibrationXML.h.
XERCES_CPP_NAMESPACE_USE CalibrationXML::CalibrationXML | ( | ) |
Definition at line 20 of file CalibrationXML.cc.
CalibrationXML::~CalibrationXML | ( | ) |
Definition at line 22 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 114 of file CalibrationXML.cc.
References cms::cuda::assert(), submitPVValidationJobs::child, contentValuesFiles::dom, validateAlignments::indent, personalPlayback::level, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CalibratedHistogramXML::write().
|
inline |
Return the root DOM Element of the opened XML calibration file
Definition at line 46 of file CalibrationXML.h.
References m_calibrationDOM.
Referenced by AlgorithmCalibration< T, CO >::dom().
|
inline |
Definition at line 36 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 32 of file CalibrationXML.cc.
References DMR_cfg::cerr, doc, MillePedeFileConverter_cfg::e, errHandler, createfilelist::int, m_calibrationDOM, m_xmlFileName, parser, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
Referenced by AlgorithmCalibration< T, CO >::dom().
|
inlinestatic |
Helper static function to read an attribute in a DOM Element
Definition at line 67 of file CalibrationXML.h.
References edmScanValgrind::buffer, contentValuesFiles::dom, Skims_PA_cff::name, fetchall_from_DQM_v2::release, and relativeConstraints::value.
void CalibrationXML::saveFile | ( | const std::string & | xmlFileName | ) |
Save DOM to file
Definition at line 100 of file CalibrationXML.cc.
References doc.
|
inlinestatic |
Helper static function to write an attribute in a DOM Element
Definition at line 53 of file CalibrationXML.h.
References edmScanValgrind::buffer, contentValuesFiles::dom, Skims_PA_cff::name, fetchall_from_DQM_v2::release, and relativeConstraints::value.
Referenced by CalibratedHistogramXML::write().
|
private |
Definition at line 86 of file CalibrationXML.h.
Referenced by openFile(), and saveFile().
|
private |
Definition at line 87 of file CalibrationXML.h.
Referenced by closeFile(), openFile(), and ~CalibrationXML().
|
private |
Definition at line 85 of file CalibrationXML.h.
Referenced by calibrationDOM(), and openFile().
|
private |
Definition at line 84 of file CalibrationXML.h.
Referenced by openFile().
|
private |
Definition at line 88 of file CalibrationXML.h.
Referenced by closeFile(), openFile(), and ~CalibrationXML().