[cpp-xmltooling COMMIT] in /branches/REL_1/xmltooling/util: ParserPool.cpp ParserPool.h

noreply at shibboleth.net noreply at shibboleth.net
Mon Nov 14 15:01:18 GMT 2011


Author: scantor
Date: Mon Nov 14 15:01:17 2011
New Revision: 915

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=915&view=rev
Log:
Add ASCII loadCatalog method.

Modified:
    branches/REL_1/xmltooling/util/ParserPool.cpp
    branches/REL_1/xmltooling/util/ParserPool.h

Modified: branches/REL_1/xmltooling/util/ParserPool.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/util/ParserPool.cpp?rev=915&r1=914&r2=915&view=diff
==============================================================================
--- branches/REL_1/xmltooling/util/ParserPool.cpp (original)
+++ branches/REL_1/xmltooling/util/ParserPool.cpp Mon Nov 14 15:01:17 2011
@@ -236,6 +236,12 @@
     return true;
 }
 
+bool ParserPool::loadCatalog(const char* pathname)
+{
+    auto_ptr_XMLCh temp(pathname);
+    return loadCatalog(temp.get());
+}
+
 bool ParserPool::loadCatalog(const XMLCh* pathname)
 {
 #if _DEBUG

Modified: branches/REL_1/xmltooling/util/ParserPool.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/util/ParserPool.h?rev=915&r1=914&r2=915&view=diff
==============================================================================
--- branches/REL_1/xmltooling/util/ParserPool.h (original)
+++ branches/REL_1/xmltooling/util/ParserPool.h Mon Nov 14 15:01:17 2011
@@ -104,6 +104,17 @@
          * @throws XMLParserException thrown if there was a problem reading, parsing, or validating the XML
          */
         xercesc::DOMDocument* parse(std::istream& is);
+
+        /**
+         * Load an OASIS catalog file to map schema namespace URIs to filenames.
+         *
+         * This does not provide real catalog support; only the <uri> element
+         * is supported to map from a namespace URI to a relative path or file:// URI.
+         *
+         * @param pathname  path to a catalog file
+         * @return true iff the catalog was successfully processed
+         */
+        bool loadCatalog(const char* pathname);
 
         /**
          * Load an OASIS catalog file to map schema namespace URIs to filenames.



More information about the commits mailing list