X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Futil%2FParserPool.h;h=004f7c77feb0ea824fa2e3f87f1711855e427542;hp=87ba21eb7cdb24d488fa6ba90866fe22fda5da28;hb=04302f1b6d2b753b00ff2bb99b20a89488f2f13d;hpb=cdd4b35118298bf5e0a16f3c5c4a31bf3d25271b diff --git a/xmltooling/util/ParserPool.h b/xmltooling/util/ParserPool.h index 87ba21e..004f7c7 100644 --- a/xmltooling/util/ParserPool.h +++ b/xmltooling/util/ParserPool.h @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -224,8 +225,9 @@ namespace xmltooling { * * @param url source of input * @param systemId optional system identifier to attach to the source + * @param cacheTag optional pointer to string used for cache management */ - URLInputSource(const XMLCh* url, const char* systemId=NULL); + URLInputSource(const XMLCh* url, const char* systemId=NULL, std::string* cacheTag=NULL); /** * Constructor taking a DOM element supporting the following content: @@ -241,17 +243,24 @@ namespace xmltooling { * * @param e DOM to supply configuration * @param systemId optional system identifier to attach to the source + * @param cacheTag optional pointer to string used for cache management */ - URLInputSource(const xercesc::DOMElement* e, const char* systemId=NULL); + URLInputSource(const xercesc::DOMElement* e, const char* systemId=NULL, std::string* cacheTag=NULL); /// @cond off virtual xercesc::BinInputStream* makeStream() const; /// @endcond + /** Element name used to signal a non-successful response when fetching a remote document. */ + static const char asciiStatusCodeElementName[]; + + /** Element name used to signal a non-successful response when fetching a remote document. */ + static const XMLCh utf16StatusCodeElementName[]; private: #ifdef XMLTOOLING_LITE xercesc::XMLURL m_url; #else + std::string* m_cacheTag; xmltooling::auto_ptr_char m_url; const xercesc::DOMElement* m_root; #endif