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);
63 void openForRead(std::auto_ptr<std::istream> &inputStream);
67 std::auto_ptr<XERCES_CPP_NAMESPACE_QUALIFIER InputSource>
inputSource;
72 std::auto_ptr<XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser>
parser;
73 std::auto_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)
std::auto_ptr< XERCES_CPP_NAMESPACE_QUALIFIER InputSource > inputSource
XERCES_CPP_NAMESPACE_QUALIFIER DOMImplementation * impl
std::auto_ptr< XercesPlatform > platform
#define XERCES_CPP_NAMESPACE_QUALIFIER
std::auto_ptr< XERCES_CPP_NAMESPACE_QUALIFIER HandlerBase > errHandler
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 openForWrite(const std::string &fileName)
static void writeAttribute(XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elem, const char *name, const T &value)
std::auto_ptr< XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser > parser
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * createDocument(const std::string &root)
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * getDocument() const
void openForRead(std::auto_ptr< std::istream > &inputStream)
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getRootNode() const