You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/10/31 23:16:58 UTC
cvs commit: xml-xerces/c/src/xercesc/validators/datatype DecimalDatatypeValidator.cpp
peiyongz 2003/10/31 14:16:58
Modified: c/src/xercesc/validators/datatype
DecimalDatatypeValidator.cpp
Log:
to serialize/deserialize data member
Revision Changes Path
1.14 +15 -0 xml-xerces/c/src/xercesc/validators/datatype/DecimalDatatypeValidator.cpp
Index: DecimalDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DecimalDatatypeValidator.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- DecimalDatatypeValidator.cpp 2 Oct 2003 19:21:06 -0000 1.13
+++ DecimalDatatypeValidator.cpp 31 Oct 2003 22:16:58 -0000 1.14
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.14 2003/10/31 22:16:58 peiyongz
+ * to serialize/deserialize data member
+ *
* Revision 1.13 2003/10/02 19:21:06 peiyongz
* Implementation of Serialization/Deserialization
*
@@ -631,6 +634,18 @@
}
AbstractNumericValidator::serialize(serEng);
+
+ //don't serialize XMLBigDecimal*
+ if (serEng.isStoring())
+ {
+ serEng<<fTotalDigits;
+ serEng<<fFractionDigits;
+ }
+ else
+ {
+ serEng>>fTotalDigits;
+ serEng>>fFractionDigits;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org