peiyongz    2004/01/02 16:03:19

  Modified:    c/src/xercesc/util XMLNumber.hpp XMLDateTime.hpp
                        XMLDateTime.cpp XMLBigDecimal.hpp XMLBigDecimal.cpp
                        XMLAbstractDoubleFloat.hpp
                        XMLAbstractDoubleFloat.cpp
  Log:
  parseContent
  
  Revision  Changes    Path
  1.11      +6 -1      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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XMLNumber.hpp     17 Oct 2003 21:10:55 -0000      1.10
  +++ XMLNumber.hpp     3 Jan 2004 00:03:18 -0000       1.11
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.11  2004/01/03 00:03:18  peiyongz
  + * parseContent
  + *
    * Revision 1.10  2003/10/17 21:10:55  peiyongz
    * loadNumber() added
    *
  @@ -162,6 +165,8 @@
         *
         */
       virtual int        getSign() const = 0;
  +
  +    virtual void       parseContent(const XMLCh* const) = 0;
   
       /***
        * Support for Serialization/De-serialization
  
  
  
  1.15      +7 -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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XMLDateTime.hpp   31 Dec 2003 02:34:11 -0000      1.14
  +++ XMLDateTime.hpp   3 Jan 2004 00:03:18 -0000       1.15
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.15  2004/01/03 00:03:18  peiyongz
  + * parseContent
  + *
    * Revision 1.14  2003/12/31 02:34:11  neilg
    * enable production of canonical representations for dates with negative years, or 
years >9999
    *
  @@ -185,6 +188,8 @@
       virtual const XMLCh*  getFormattedString() const;
   
       virtual int           getSign() const;
  +
  +    virtual void       parseContent(const XMLCh* const);
   
       // -----------------------------------------------------------------------
       // Canonical Representation
  
  
  
  1.21      +9 -2      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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- XMLDateTime.cpp   31 Dec 2003 02:34:11 -0000      1.20
  +++ XMLDateTime.cpp   3 Jan 2004 00:03:18 -0000       1.21
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.21  2004/01/03 00:03:18  peiyongz
  + * parseContent
  + *
    * Revision 1.20  2003/12/31 02:34:11  neilg
    * enable production of canonical representations for dates with negative years, or 
years >9999
    *
  @@ -584,6 +587,10 @@
   int XMLDateTime::getSign() const
   {
       return 0;
  +}
  +
  +void XMLDateTime::parseContent(const XMLCh* const)
  +{
   }
   
   // ---------------------------------------------------------------------------
  
  
  
  1.16      +3 -1      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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- XMLBigDecimal.hpp 17 Dec 2003 00:18:35 -0000      1.15
  +++ XMLBigDecimal.hpp 3 Jan 2004 00:03:18 -0000       1.16
  @@ -124,6 +124,8 @@
   
       virtual int           getSign() const;
   
  +    virtual void          parseContent(const XMLCh* const);
  +
       const XMLCh*          getValue() const;
   
       unsigned int          getScale() const;
  
  
  
  1.19      +13 -5     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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- XMLBigDecimal.cpp 23 Dec 2003 21:48:14 -0000      1.18
  +++ XMLBigDecimal.cpp 3 Jan 2004 00:03:18 -0000       1.19
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.19  2004/01/03 00:03:18  peiyongz
  + * parseContent
  + *
    * Revision 1.18  2003/12/23 21:48:14  peiyongz
    * Absorb exception thrown in getCanonicalRepresentation and return 0
    *
  @@ -175,6 +178,16 @@
   , 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);
   
  @@ -198,11 +211,6 @@
           cleanUp();
           throw;
       }
  -}
  -
  -XMLBigDecimal::~XMLBigDecimal()
  -{
  -    cleanUp();
   }
   
   void XMLBigDecimal::cleanUp()
  
  
  
  1.18      +6 -1      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.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- XMLAbstractDoubleFloat.hpp        17 Dec 2003 00:18:35 -0000      1.17
  +++ XMLAbstractDoubleFloat.hpp        3 Jan 2004 00:03:18 -0000       1.18
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.18  2004/01/03 00:03:18  peiyongz
  + * 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.
    *
  @@ -195,6 +198,8 @@
       virtual const XMLCh*  getFormattedString() const;
   
       virtual int           getSign() const;
  +
  +    virtual void          parseContent(const XMLCh* const);
   
       MemoryManager*        getMemoryManager() const;
   
  
  
  
  1.23      +9 -1      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.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- XMLAbstractDoubleFloat.cpp        23 Dec 2003 21:48:14 -0000      1.22
  +++ XMLAbstractDoubleFloat.cpp        3 Jan 2004 00:03:18 -0000       1.23
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.23  2004/01/03 00:03:18  peiyongz
  + * parseContent
  + *
    * Revision 1.22  2003/12/23 21:48:14  peiyongz
    * Absorb exception thrown in getCanonicalRepresentation and return 0
    *
  @@ -174,6 +177,11 @@
   {
        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)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to