1 #ifndef GeneratorInterface_LHEInterface_XMLUtils_h
2 #define GeneratorInterface_LHEInterface_XMLUtils_h
8 #include <xercesc/util/XMLString.hpp>
9 #include <xercesc/util/XMLUni.hpp>
10 #include <xercesc/util/XMLChar.hpp>
11 #include <xercesc/util/BinInputStream.hpp>
12 #include <xercesc/framework/XMLPScanToken.hpp>
13 #include <xercesc/sax/InputSource.hpp>
14 #include <xercesc/sax2/DefaultHandler.hpp>
15 #include <xercesc/sax2/SAX2XMLReader.hpp>
63 std::auto_ptr<XERCES_CPP_NAMESPACE_QUALIFIER InputSource>
source;
64 std::auto_ptr<XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader>
parser;
80 inline operator const char *()
const
83 inline static bool isAllSpaces(
const XMLCh *str,
unsigned int length)
85 XMLChar1_0::isAllSpaces(str, length); }
89 XMLChar1_0::isWhitespace(ch); }
104 operator const XMLCh *()
const
121 {
return new T(*
obj); }
124 std::auto_ptr<Stream_t>
obj;
142 virtual unsigned int readBytes(XMLByte *
const buf,
143 const unsigned int size);
160 virtual unsigned int readBytes(XMLByte *
const buf,
161 const unsigned int size);
178 virtual unsigned int readBytes(XMLByte *
const buf,
179 const unsigned int size);
199 #endif // GeneratorInterface_LHEInterface_XMLUtils_h
std::auto_ptr< XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader > parser
XMLInputSourceWrapper< StorageInputStream > StorageInputSource
XMLInputSourceWrapper< STLInputStream > STLInputSource
void init(Handler &handler)
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)
XMLDocument(std::auto_ptr< std::istream > &in, Handler &handler)
#define XERCES_CPP_NAMESPACE_QUALIFIER
XERCES_CPP_NAMESPACE_QUALIFIER XMLPScanToken token
XMLCh * transcode(const T &fInput)
static bool isAllSpaces(const XMLCh *str, unsigned int length)
XMLSimpleStr(const XMLCh *str)
XMLUniStr(const char *str)
std::unique_ptr< Storage > storage
tuple size
Write out results.