Go to the documentation of this file. 1 #ifndef GeneratorInterface_LHEInterface_XMLUtils_h
2 #define GeneratorInterface_LHEInterface_XMLUtils_h
9 #include <xercesc/util/XMLString.hpp>
10 #include <xercesc/util/XMLUni.hpp>
11 #include <xercesc/util/XMLChar.hpp>
12 #include <xercesc/util/BinInputStream.hpp>
13 #include <xercesc/framework/XMLPScanToken.hpp>
14 #include <xercesc/sax/InputSource.hpp>
15 #include <xercesc/sax2/DefaultHandler.hpp>
16 #include <xercesc/sax2/SAX2XMLReader.hpp>
45 static std::shared_ptr<void>
platformHandle() {
return std::make_shared<XercesPlatform>(); }
65 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER InputSource>
source;
66 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader>
parser;
79 inline operator const char *()
const {
return string; }
97 operator const XMLCh *()
const {
return unicode; }
103 template <
typename T>
114 std::unique_ptr<Stream_t>
obj;
191 #endif // GeneratorInterface_LHEInterface_XMLUtils_h
static std::shared_ptr< void > platformHandle()
std::unique_ptr< XercesPlatform > platform
XMLInputSourceWrapper< CBInputStream > CBInputSource
StorageWrap(std::unique_ptr< Storage > storage)
static bool isAllSpaces(const XMLCh *str, unsigned int length)
const Storage * operator->() const
std::unique_ptr< Storage > storage
#define XERCES_CPP_NAMESPACE_QUALIFIER
void init(Handler &handler)
XMLUniStr(const char *str)
XMLSimpleStr(const XMLCh *str)
XMLDocument(std::unique_ptr< std::istream > &in, Handler &handler)
XMLInputSourceWrapper< StorageInputStream > StorageInputSource
XMLInputSourceWrapper< STLInputStream > STLInputSource
XERCES_CPP_NAMESPACE_QUALIFIER XMLPScanToken token
static bool isSpace(XMLCh ch)
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER InputSource > source
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader > parser