neilg 2003/10/10 11:36:41
Modified: c/src/xercesc/internal XMLGrammarPoolImpl.cpp
XMLGrammarPoolImpl.hpp
Log:
update XMLGrammarPool default implementation to reflect recent modifications to the
base interface.
Revision Changes Path
1.7 +12 -1 xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.cpp
Index: XMLGrammarPoolImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLGrammarPoolImpl.cpp 9 Oct 2003 13:54:25 -0000 1.6
+++ XMLGrammarPoolImpl.cpp 10 Oct 2003 18:36:41 -0000 1.7
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.7 2003/10/10 18:36:41 neilg
+ * update XMLGrammarPool default implementation to reflect recent modifications to
the base interface.
+ *
* Revision 1.6 2003/10/09 13:54:25 neilg
* modify grammar pool implementation to that, once locked, a thread-safe
StringPool is used
*
@@ -200,6 +203,14 @@
XMLSchemaDescription* XMLGrammarPoolImpl::createSchemaDescription(const XMLCh*
const targetNamespace)
{
return new (getMemoryManager()) XMLSchemaDescriptionImpl(targetNamespace,
getMemoryManager());
+}
+
+inline XSModel *XMLGrammarPoolImpl::getXSModel() const
+{
+ if(!fLocked)
+ return 0;
+ // REVISIT: implement along with XSModel implementation
+ return 0;
}
inline XMLStringPool *XMLGrammarPoolImpl::getURIStringPool()
1.7 +24 -1 xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.hpp
Index: XMLGrammarPoolImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLGrammarPoolImpl.hpp 9 Oct 2003 13:54:25 -0000 1.6
+++ XMLGrammarPoolImpl.hpp 10 Oct 2003 18:36:41 -0000 1.7
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.7 2003/10/10 18:36:41 neilg
+ * update XMLGrammarPool default implementation to reflect recent modifications to
the base interface.
+ *
* Revision 1.6 2003/10/09 13:54:25 neilg
* modify grammar pool implementation to that, once locked, a thread-safe
StringPool is used
*
@@ -200,6 +203,26 @@
virtual XMLSchemaDescription* createSchemaDescription(const XMLCh* const
targetNamespace);
//@}
+ // -----------------------------------------------------------------------
+ /** @name schema component model support
+ // -----------------------------------------------------------------------
+ //@{
+
+ /***
+ * If the grammar pool has been locked, this method returns
+ * an XSModel corresponding to the schema components represented
+ * by the objects stored in the pool. If the pool has not been
+ * locked, this must return null. If the pool is unlocked at
+ * any point, the underlying XSModel will be destroyed;
+ * applications must take care that, if they wish to unlock
+ * a pool, no further access is made to the XSModel
+ * it produced. The pool's XSModel will not be serialized,
+ * but, if a locked pool is deserialized, its XSModel
+ * will be recreated.
+ */
+ virtual XSModel *getXSModel() const;
+
+ // @}
// -----------------------------------------------------------------------
/** @name Getter */
// -----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]