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::auto_ptr<XERCES_CPP_NAMESPACE_QUALIFIER InputSource>
source;
66 std::auto_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::auto_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
std::auto_ptr< XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader > parser
XMLInputSourceWrapper< StorageInputStream > StorageInputSource
XMLInputSourceWrapper< STLInputStream > STLInputSource
StorageWrap(std::unique_ptr< Storage > storage)
std::auto_ptr< XERCES_CPP_NAMESPACE_QUALIFIER InputSource > source
XMLInputSourceWrapper< CBInputStream > CBInputSource
std::auto_ptr< XercesPlatform > platform
static bool isSpace(XMLCh ch)
#define XERCES_CPP_NAMESPACE_QUALIFIER
XERCES_CPP_NAMESPACE_QUALIFIER XMLPScanToken token
static bool isAllSpaces(const XMLCh *str, unsigned int length)
static std::shared_ptr< void > platformHandle()
XMLSimpleStr(const XMLCh *str)
XMLUniStr(const char *str)
char data[epos_bytes_allocation]
std::unique_ptr< Storage > storage