1 #ifndef PhysicsTools_MVATrainer_XMLDocument_h 2 #define PhysicsTools_MVATrainer_XMLDocument_h 8 #include <xercesc/dom/DOM.hpp> 9 #include <xercesc/dom/DOMImplementation.hpp> 10 #include <xercesc/parsers/XercesDOMParser.hpp> 11 #include <xercesc/sax/HandlerBase.hpp> 12 #include <xercesc/sax/InputSource.hpp> 13 #include <xercesc/dom/DOMDocument.hpp> 37 const char *name,
const T &defValue);
40 const char *name,
const T &
value);
63 void openForRead(std::unique_ptr<std::istream> &inputStream);
67 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER InputSource>
inputSource;
72 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser>
parser;
73 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER HandlerBase>
errHandler;
80 #include "PhysicsTools/MVATrainer/interface/XMLDocument.icc" 82 #endif // PhysicsTools_MVATrainer_XMLDocument_h static T readContent(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation * impl
std::unique_ptr< XercesPlatform > platform
#define XERCES_CPP_NAMESPACE_QUALIFIER
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER InputSource > inputSource
static bool hasAttribute(XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elem, const char *name)
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * rootNode
static T readAttribute(XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elem, const char *name)
static void writeContent(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const T &value)
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
void openForRead(std::unique_ptr< std::istream > &inputStream)
void openForWrite(const std::string &fileName)
static void writeAttribute(XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elem, const char *name, const T &value)
def elem(elemtype, innerHTML='', html_class='', kwargs)
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER HandlerBase > errHandler
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser > parser
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * createDocument(const std::string &root)
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * getDocument() const
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getRootNode() const