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 2004/01/13 20:50:56 UTC
cvs commit: xml-xerces/c/src/xercesc/util XMLAbstractDoubleFloat.cpp XMLAbstractDoubleFloat.hpp XMLBigDecimal.cpp XMLBigDecimal.hpp XMLDateTime.cpp XMLDateTime.hpp XMLNumber.hpp
peiyongz 2004/01/13 11:50:56
Modified: c/src/xercesc/util XMLAbstractDoubleFloat.cpp
XMLAbstractDoubleFloat.hpp XMLBigDecimal.cpp
XMLBigDecimal.hpp XMLDateTime.cpp XMLDateTime.hpp
XMLNumber.hpp
Log:
remove parseContent()
Revision Changes Path
1.25 +5 -7 xml-xerces/c/src/xercesc/util/XMLAbstractDoubleFloat.cpp
Index: XMLAbstractDoubleFloat.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLAbstractDoubleFloat.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- XMLAbstractDoubleFloat.cpp 12 Jan 2004 16:23:39 -0000 1.24
+++ XMLAbstractDoubleFloat.cpp 13 Jan 2004 19:50:56 -0000 1.25
@@ -57,6 +57,9 @@
/*
* $Id$
* $Log$
+ * Revision 1.25 2004/01/13 19:50:56 peiyongz
+ * remove parseContent()
+ *
* Revision 1.24 2004/01/12 16:23:39 neilg
* remove use of static buffers
*
@@ -179,11 +182,6 @@
{
fMemoryManager->deallocate(fRawData);//delete [] fRawData;
fMemoryManager->deallocate(fFormattedString);//delete [] fFormattedString;
-}
-
-void XMLAbstractDoubleFloat::parseContent(const XMLCh* const strValue)
-{
- init(strValue);
}
void XMLAbstractDoubleFloat::init(const XMLCh* const strValue)
1.19 +0 -2 xml-xerces/c/src/xercesc/util/XMLAbstractDoubleFloat.hpp
Index: XMLAbstractDoubleFloat.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLAbstractDoubleFloat.hpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- XMLAbstractDoubleFloat.hpp 3 Jan 2004 00:03:18 -0000 1.18
+++ XMLAbstractDoubleFloat.hpp 13 Jan 2004 19:50:56 -0000 1.19
@@ -57,8 +57,8 @@
/*
* $Id$
* $Log$
- * Revision 1.18 2004/01/03 00:03:18 peiyongz
- * parseContent
+ * Revision 1.19 2004/01/13 19:50:56 peiyongz
+ * remove parseContent()
*
* Revision 1.17 2003/12/17 00:18:35 cargilld
* Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.
@@ -198,8 +198,6 @@
virtual const XMLCh* getFormattedString() const;
virtual int getSign() const;
-
- virtual void parseContent(const XMLCh* const);
MemoryManager* getMemoryManager() const;
1.21 +6 -15 xml-xerces/c/src/xercesc/util/XMLBigDecimal.cpp
Index: XMLBigDecimal.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLBigDecimal.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- XMLBigDecimal.cpp 6 Jan 2004 04:42:04 -0000 1.20
+++ XMLBigDecimal.cpp 13 Jan 2004 19:50:56 -0000 1.21
@@ -56,14 +56,8 @@
/*
* $Log$
- * Revision 1.20 2004/01/06 04:42:04 neilg
- * Since parseContent may now be called outside a constructor,
- * the destructor may subsequently be invoked. If this happens,
- * an attempt will be made to delete fRawData if it is non-zero.
- * Therefore, 0 it before throwing the exception after cleanUp() is called.
- *
- * Revision 1.19 2004/01/03 00:03:18 peiyongz
- * parseContent
+ * Revision 1.21 2004/01/13 19:50:56 peiyongz
+ * remove parseContent()
*
* Revision 1.18 2003/12/23 21:48:14 peiyongz
* Absorb exception thrown in getCanonicalRepresentation and return 0
@@ -184,16 +178,6 @@
, fIntVal(0)
, fMemoryManager(manager)
{
- parseContent(strValue);
-}
-
-XMLBigDecimal::~XMLBigDecimal()
-{
- cleanUp();
-}
-
-void XMLBigDecimal::parseContent(const XMLCh* const strValue)
-{
if ((!strValue) || (!*strValue))
ThrowXMLwithMemMgr(NumberFormatException, XMLExcepts::XMLNUM_emptyString, fMemoryManager);
@@ -215,9 +199,13 @@
catch(...)
{
cleanUp();
- fRawData = 0;
throw;
}
+}
+
+XMLBigDecimal::~XMLBigDecimal()
+{
+ cleanUp();
}
void XMLBigDecimal::cleanUp()
1.17 +0 -2 xml-xerces/c/src/xercesc/util/XMLBigDecimal.hpp
Index: XMLBigDecimal.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLBigDecimal.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- XMLBigDecimal.hpp 3 Jan 2004 00:03:18 -0000 1.16
+++ XMLBigDecimal.hpp 13 Jan 2004 19:50:56 -0000 1.17
@@ -124,8 +124,6 @@
virtual int getSign() const;
- virtual void parseContent(const XMLCh* const);
-
const XMLCh* getValue() const;
unsigned int getScale() const;
1.23 +4 -5 xml-xerces/c/src/xercesc/util/XMLDateTime.cpp
Index: XMLDateTime.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLDateTime.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- XMLDateTime.cpp 13 Jan 2004 16:34:20 -0000 1.22
+++ XMLDateTime.cpp 13 Jan 2004 19:50:56 -0000 1.23
@@ -57,6 +57,9 @@
/*
* $Id$
* $Log$
+ * Revision 1.23 2004/01/13 19:50:56 peiyongz
+ * remove parseContent()
+ *
* Revision 1.22 2004/01/13 16:34:20 cargilld
* Misc memory management changes.
*
@@ -591,10 +594,6 @@
int XMLDateTime::getSign() const
{
return 0;
-}
-
-void XMLDateTime::parseContent(const XMLCh* const)
-{
}
// ---------------------------------------------------------------------------
1.16 +0 -2 xml-xerces/c/src/xercesc/util/XMLDateTime.hpp
Index: XMLDateTime.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLDateTime.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- XMLDateTime.hpp 3 Jan 2004 00:03:18 -0000 1.15
+++ XMLDateTime.hpp 13 Jan 2004 19:50:56 -0000 1.16
@@ -57,8 +57,8 @@
/*
* $Id$
* $Log$
- * Revision 1.15 2004/01/03 00:03:18 peiyongz
- * parseContent
+ * Revision 1.16 2004/01/13 19:50:56 peiyongz
+ * remove parseContent()
*
* Revision 1.14 2003/12/31 02:34:11 neilg
* enable production of canonical representations for dates with negative years, or years >9999
@@ -188,8 +188,6 @@
virtual const XMLCh* getFormattedString() const;
virtual int getSign() const;
-
- virtual void parseContent(const XMLCh* const);
// -----------------------------------------------------------------------
// Canonical Representation
1.12 +0 -2 xml-xerces/c/src/xercesc/util/XMLNumber.hpp
Index: XMLNumber.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLNumber.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- XMLNumber.hpp 3 Jan 2004 00:03:18 -0000 1.11
+++ XMLNumber.hpp 13 Jan 2004 19:50:56 -0000 1.12
@@ -57,8 +57,8 @@
/*
* $Id$
* $Log$
- * Revision 1.11 2004/01/03 00:03:18 peiyongz
- * parseContent
+ * Revision 1.12 2004/01/13 19:50:56 peiyongz
+ * remove parseContent()
*
* Revision 1.10 2003/10/17 21:10:55 peiyongz
* loadNumber() added
@@ -165,8 +165,6 @@
*
*/
virtual int getSign() const = 0;
-
- virtual void parseContent(const XMLCh* const) = 0;
/***
* Support for Serialization/De-serialization
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org