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>
19 namespace edm::storage {
49 static std::shared_ptr<void>
platformHandle() {
return std::make_shared<XercesPlatform>(); }
68 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER InputSource>
source;
69 std::unique_ptr<XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader>
parser;
82 inline operator const char *()
const {
return string; }
100 operator const XMLCh *()
const {
return unicode; }
106 template <
typename T>
117 std::unique_ptr<Stream_t>
obj;
194 #endif // GeneratorInterface_LHEInterface_XMLUtils_h
XMLInputSourceWrapper< StorageInputStream > StorageInputSource
XMLInputSourceWrapper< STLInputStream > STLInputSource
void init(Handler &handler)
StorageWrap(std::unique_ptr< Storage > storage)
XMLInputSourceWrapper< CBInputStream > CBInputSource
static bool isSpace(XMLCh ch)
std::unique_ptr< XercesPlatform > platform
#define XERCES_CPP_NAMESPACE_QUALIFIER
XERCES_CPP_NAMESPACE_QUALIFIER XMLPScanToken token
static bool isAllSpaces(const XMLCh *str, unsigned int length)
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader > parser
static std::shared_ptr< void > platformHandle()
std::unique_ptr< XERCES_CPP_NAMESPACE_QUALIFIER InputSource > source
XMLDocument(std::unique_ptr< std::istream > &in, Handler &handler)
XMLSimpleStr(const XMLCh *str)
XMLUniStr(const char *str)
const Storage * operator->() const
std::unique_ptr< Storage > storage
tuple size
Write out results.