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> 46 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;
82 inline operator const char *()
const 87 XMLChar1_0::isAllSpaces(str, length); }
91 XMLChar1_0::isWhitespace(ch); }
106 operator const XMLCh *()
const 123 {
return new T(*
obj); }
126 std::unique_ptr<Stream_t>
obj;
144 XMLSize_t readBytes(XMLByte *
const buf,
145 const XMLSize_t
size)
override;
164 XMLSize_t readBytes(XMLByte *
const buf,
165 const XMLSize_t
size)
override;
184 XMLSize_t readBytes(XMLByte *
const buf,
185 const XMLSize_t
size)
override;
196 unsigned int buffLoc_ = 0,buffTotal_ = 0;
207 #endif // GeneratorInterface_LHEInterface_XMLUtils_h
XMLInputSourceWrapper< StorageInputStream > StorageInputSource
XMLInputSourceWrapper< STLInputStream > STLInputSource
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
XMLSimpleStr(const XMLCh *str)
XMLUniStr(const char *str)
char data[epos_bytes_allocation]
std::unique_ptr< Storage > storage