gareth 2003/09/01 05:59:59 Modified: c/src/xercesc/validators/common GrammarResolver.cpp GrammarResolver.hpp Log: added API to get an enumerator for the cached grammars. Revision Changes Path 1.17 +9 -0 xml-xerces/c/src/xercesc/validators/common/GrammarResolver.cpp Index: GrammarResolver.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/common/GrammarResolver.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- GrammarResolver.cpp 22 Aug 2003 09:04:41 -0000 1.16 +++ GrammarResolver.cpp 1 Sep 2003 12:59:59 -0000 1.17 @@ -57,6 +57,9 @@ /* * $Log$ + * Revision 1.17 2003/09/01 12:59:59 gareth + * added API to get an enumerator for the cached grammars. + * * Revision 1.16 2003/08/22 09:04:41 gareth * keep the fGrammarFromPool in sync to avoid problems when parseing multiple times. Patch by Alberto Massari. * @@ -290,6 +293,12 @@ GrammarResolver::getGrammarEnumerator() const { return RefHashTableOfEnumerator<Grammar>(fGrammarBucket); +} + +RefHashTableOfEnumerator<Grammar> +GrammarResolver::getCachedGrammarEnumerator() const +{ + return RefHashTableOfEnumerator<Grammar>(fGrammarFromPool); } bool GrammarResolver::containsNameSpace( const XMLCh* const nameSpaceKey ) 1.14 +8 -1 xml-xerces/c/src/xercesc/validators/common/GrammarResolver.hpp Index: GrammarResolver.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/common/GrammarResolver.hpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- GrammarResolver.hpp 31 Jul 2003 17:08:39 -0000 1.13 +++ GrammarResolver.hpp 1 Sep 2003 12:59:59 -0000 1.14 @@ -135,6 +135,13 @@ */ RefHashTableOfEnumerator<Grammar> getGrammarEnumerator() const; + /** + * Get an enumeration of the cached Grammar in the Grammar pool + * + * @return enumeration of cached Grammar in Grammar pool + */ + RefHashTableOfEnumerator<Grammar> getCachedGrammarEnumerator() const; + /** * Get a string pool of schema grammar element/attribute names/prefixes
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]