neilg 2003/09/22 12:47:14
Modified: c/src/xercesc/validators/common Grammar.hpp
Log:
change Grammar::putElemDecl(XMLElementDecl, bool) so that it does not require the
Grammar object to be const. Also, mark findOrAddGrammar as being dangerous in
multithreaded situations
Revision Changes Path
1.7 +8 -1 xml-xerces/c/src/xercesc/validators/common/Grammar.hpp
Index: Grammar.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/common/Grammar.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Grammar.hpp 31 Jul 2003 17:07:33 -0000 1.6
+++ Grammar.hpp 22 Sep 2003 19:47:14 -0000 1.7
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.7 2003/09/22 19:47:14 neilg
+ * change Grammar::putElemDecl(XMLElementDecl, bool) so that it does not require
the Grammar object to be const. Also, mark findOrAddGrammar as being dangerous in
multithreaded situations
+ *
* Revision 1.6 2003/07/31 17:07:33 peiyongz
* Grammar embed grammar description
*
@@ -152,6 +155,10 @@
virtual bool getValidated() const = 0;
// Element Decl
+
+ // this method should only be used while the grammar is being
+ // constructed, not while it is being used
+ // in a validation episode!
virtual XMLElementDecl* findOrAddElemDecl
(
const unsigned int uriId
@@ -224,7 +231,7 @@
(
XMLElementDecl* const elemDecl
, const bool notDeclared = false
- ) const = 0;
+ ) = 0;
virtual unsigned int putNotationDecl
(
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]