You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2005/02/19 23:26:19 UTC
cvs commit: xml-xerces/c/src/xercesc/internal XTemplateSerializer.cpp
cargilld 2005/02/19 14:26:19
Modified: c/src/xercesc/internal XTemplateSerializer.cpp
Log:
Store key for recreating table instead of using enclosingscope.
Revision Changes Path
1.12 +20 -9 xml-xerces/c/src/xercesc/internal/XTemplateSerializer.cpp
Index: XTemplateSerializer.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XTemplateSerializer.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- XTemplateSerializer.cpp 26 Oct 2004 14:48:46 -0000 1.11
+++ XTemplateSerializer.cpp 19 Feb 2005 22:26:19 -0000 1.12
@@ -17,6 +17,9 @@
/*
* $Id$
* $Log$
+ * Revision 1.12 2005/02/19 22:26:19 cargilld
+ * Store key for recreating table instead of using enclosingscope.
+ *
* Revision 1.11 2004/10/26 14:48:46 peiyongz
* Maintain consistent order among multiple store/load session to allow comparison
*
@@ -2158,10 +2161,17 @@
serEng<<e.size();
- while (e.hasMoreElements())
+ XMLCh* strkey;
+ int key1;
+ int key2;
+ /* Update to store key2 separately as for the putGroupElemDecl the key is not the
+ enclosing scope but another value. */
+ while (e.hasMoreKeys())
{
- SchemaElementDecl& data = e.nextElement();
- serEng<<&data;
+ e.nextElementKey((void*&)strkey, key1, key2);
+ serEng<<key2;
+ SchemaElementDecl* data = objToStore->getByKey(strkey, key1, key2);
+ serEng<<data;
}
}
@@ -2195,16 +2205,17 @@
int itemNumber = 0;
serEng>>itemNumber;
+ int scopeKey;
+ SchemaElementDecl* elemDecl;
for (int itemIndex = 0; itemIndex < itemNumber; itemIndex++)
- {
- SchemaElementDecl* elemDecl;
+ {
+ serEng>>scopeKey;
serEng>>elemDecl;
- (*objToLoad)->put(elemDecl->getBaseName()
+ (*objToLoad)->put(elemDecl->getBaseName()
, elemDecl->getURI()
- , elemDecl->getEnclosingScope()
+ , scopeKey
, elemDecl);
-
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org