|  | 
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members 
 XMLBigDecimal  Class Reference#include <XMLBigDecimal.hpp>
Inheritance diagram for XMLBigDecimal  [legend]Collaboration diagram for XMLBigDecimal:  [legend]List of all members. 
| 
 Public Methods |  |  | XMLBigDecimal (const XMLCh *const strValue) |  |  | Constructs a newly allocated XMLBigDecimalobject that represents the value represented by the string. More...
 
 |  |  | ~XMLBigDecimal () |  |  | XMLBigDecimal (const XMLBigDecimal &toCopy) |  |  | XMLBigDecimal (const XMLBigDecimal &toCopy,const int addExponent) |  |  | Constructs a newly allocated XMLBigDecimalobject from an existing XMLBigDecimal with an extra Exponent.
 
 |  | virtual XMLCh* | toString ()const |  |  | Return string representation of the decimal value. More... 
 
 |  | virtual int | getSign ()const |  |  | Returns the sign of this number. More... 
 
 |  | XMLBigInteger* | getValue ()const |  | unsigned int | getScale ()const |  | unsigned int | getTotalDigit ()const |  | bool | operator== (const XMLBigDecimal &toCompare)const |  |  | Compares this object to the specified object. More... 
 
 |  | 
 Static Public Methods |  | void | parseBigDecimal (const XMLCh *const strValue,XMLCh *const retValue,unsigned int &scaleValue) |  | int | compareValues (const XMLBigDecimal *const lValue,const XMLBigDecimal *const rValue) |  | void | matchScale (XMLBigDecimal *const lValue,XMLBigDecimal *const rValue) |  
 Constructor & Destructor Documentation
 
  
    | 
        
          | XMLBigDecimal::XMLBigDecimal ( | const XMLCh *const strValue ) |  |  
  
    |  | 
Constructs a newly allocated XMLBigDecimalobject that represents the value represented by the string. 
 
Parameters: 
| the | Stringto be converted to anXMLBigDecimal. | 
 
Exceptions: 
| NumberFormatException | if the Stringdoes not contain a parsable XMLBigDecimal. | 
 |  
 
  
    | 
        
          | XMLBigDecimal::~XMLBigDecimal ( | ) |  |  
 
  
    | 
        
          | XMLBigDecimal::XMLBigDecimal ( | const XMLBigDecimal & toCopy ) |  |  
 
  
    | 
        
          | XMLBigDecimal::XMLBigDecimal ( | const XMLBigDecimal & toCopy, |  
          |  | const int addExponent ) |  |  
  
    |  | 
Constructs a newly allocated XMLBigDecimalobject from an existing XMLBigDecimal with an extra Exponent. 
     |  
 Member Function Documentation
 
  
    | 
        
          | int XMLBigDecimal::compareValues ( | const XMLBigDecimal *const lValue, |  
          |  | const XMLBigDecimal *const rValue )  [static] |  |  
 
  
    | 
        
          | unsigned int XMLBigDecimal::getScale ( | ) const |  |  
 
  
    | 
        
          | int XMLBigDecimal::getSign ( | ) const  [virtual] |  |  
  
    |  | 
Returns the sign of this number.
 
-1 negative 0 zero 1 positive 
 
Reimplemented from XMLNumber.     |  
 
  
    | 
        
          | unsigned int XMLBigDecimal::getTotalDigit ( | ) const |  |  
 
 
  
    | 
        
          | void XMLBigDecimal::matchScale ( | XMLBigDecimal *const lValue, |  
          |  | XMLBigDecimal *const rValue )  [static] |  |  
 
  
    | 
        
          | bool XMLBigDecimal::operator== ( | const XMLBigDecimal & toCompare ) const |  |  
  
    |  | 
Compares this object to the specified object.
 
The result is trueif and only if the argument is notnulland is anXMLBigDecimalobject that contains the sameintvalue as this object. 
Parameters: 
| obj | the object to compare with. | 
 
Returns: 
 trueif the objects are the same;falseotherwise.
 |  
 
  
    | 
        
          | void XMLBigDecimal::parseBigDecimal ( | const XMLCh *const strValue, |  
          |  | XMLCh *const retValue, |  
          |  | unsigned int & scaleValue )  [static] |  |  
 
  
    | 
        
          | virtual XMLCh* XMLBigDecimal::toString ( | ) const  [virtual] |  |  
  
    |  | 
Return string representation of the decimal value.
 
A decimal point will be included as necessary,  the caller of this method is responsible for the  de-allocation of the memory. 
 
Reimplemented from XMLNumber.     |  The documentation for this class was generated from the following file:
 |