|
Xerces-C++ 3.2.4
|
#include <xercesc/util/XMLBigDecimal.hpp>
Public Member Functions | |
| XMLBigDecimal (const XMLCh *const strValue, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
Constructs a newly allocated XMLBigDecimal object that represents the value represented by the string. | |
| ~XMLBigDecimal () | |
| virtual XMLCh * | getRawData () const |
| Return string representation of the decimal value. | |
| virtual const XMLCh * | getFormattedString () const |
| Return the original and converted value of the original data. | |
| virtual int | getSign () const |
| Returns the sign of this number. | |
| const XMLCh * | getValue () const |
| unsigned int | getScale () const |
| unsigned int | getTotalDigit () const |
| XMLCh * | getIntVal () const |
| int | toCompare (const XMLBigDecimal &other) const |
| Compares this object to the specified object. | |
| void | setDecimalValue (const XMLCh *const strValue) |
| MemoryManager * | getMemoryManager () const |
| XMLBigDecimal (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
| Public Member Functions inherited from XMLNumber | |
| virtual | ~XMLNumber () |
| Public Member Functions inherited from XMemory | |
| void * | operator new (size_t size) |
| This method overrides operator new. | |
| void * | operator new (size_t size, MemoryManager *memMgr) |
| This method defines a custom operator new, that will use the provided memory manager to perform the allocation. | |
| void * | operator new (size_t size, void *ptr) |
| This method overrides placement operator new. | |
| void | operator delete (void *p) |
| This method overrides operator delete. | |
| void | operator delete (void *p, MemoryManager *memMgr) |
| This method provides a matching delete for the custom operator new. | |
| void | operator delete (void *p, void *ptr) |
| This method provides a matching delete for the placement new. | |
Static Public Member Functions | |
| static int | compareValues (const XMLBigDecimal *const lValue, const XMLBigDecimal *const rValue, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |
| static XMLCh * | getCanonicalRepresentation (const XMLCh *const rawData, MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager) |
| static void | parseDecimal (const XMLCh *const toParse, XMLCh *const retBuffer, int &sign, int &totalDigits, int &fractDigits, MemoryManager *const manager) |
| static void | parseDecimal (const XMLCh *const toParse, MemoryManager *const manager) |
| Static Public Member Functions inherited from XMLNumber | |
| static XMLNumber * | loadNumber (XMLNumber::NumberType numType, XSerializeEngine &serEng) |
Additional Inherited Members | |
| Public Types inherited from XMLNumber | |
| enum | { LESS_THAN = -1 , EQUAL = 0 , GREATER_THAN = 1 , INDETERMINATE = 2 } |
| enum | NumberType { Float , Double , BigDecimal , DateTime , UnKnown } |
| Protected Member Functions inherited from XMLNumber | |
| XMLNumber () | |
| XMLNumber (const XMLNumber &) | |
| Protected Member Functions inherited from XMemory | |
| XMemory () | |
| Protected default constructor. | |
| XMLBigDecimal::XMLBigDecimal | ( | const XMLCh *const | strValue, |
| MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager ) |
Constructs a newly allocated XMLBigDecimal object that represents the value represented by the string.
| strValue | the String to be converted to an XMLBigDecimal. |
| manager | Pointer to the memory manager to be used to allocate objects. |
| NumberFormatException | if the String does not contain a parsable XMLBigDecimal. |
References XMLPlatformUtils::fgMemoryManager.
Referenced by compareValues(), getSign(), setDecimalValue(), toCompare(), and XMLBigDecimal().
| XMLBigDecimal::~XMLBigDecimal | ( | ) |
| XMLBigDecimal::XMLBigDecimal | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | ) |
References XMLBigDecimal().
|
static |
References XMLPlatformUtils::fgMemoryManager, and XMLBigDecimal().
|
static |
References XMLPlatformUtils::fgMemoryManager.
|
virtual |
Return the original and converted value of the original data.
(applicable to double/float)
The internal buffer is returned directly, user is not required to delete the returned buffer
Implements XMLNumber.
| XMLCh * XMLBigDecimal::getIntVal | ( | ) | const |
Referenced by parseDecimal().
| MemoryManager * XMLBigDecimal::getMemoryManager | ( | ) | const |
Referenced by setDecimalValue().
|
virtual |
Return string representation of the decimal value.
A decimal point will be included as necessary. Similar to toString above, but the internal buffer is returned directly, user is not required to delete the returned buffer
Implements XMLNumber.
| unsigned int XMLBigDecimal::getScale | ( | ) | const |
Referenced by parseDecimal().
|
virtual |
Returns the sign of this number.
-1 negative 0 zero 1 positive
Implements XMLNumber.
References getSign(), and XMLBigDecimal().
Referenced by getSign().
| unsigned int XMLBigDecimal::getTotalDigit | ( | ) | const |
Referenced by parseDecimal().
| const XMLCh * XMLBigDecimal::getValue | ( | ) | const |
Referenced by parseDecimal().
|
static |
References getIntVal(), getScale(), getTotalDigit(), and getValue().
|
static |
| void XMLBigDecimal::setDecimalValue | ( | const XMLCh *const | strValue | ) |
References getMemoryManager(), and XMLBigDecimal().
| int XMLBigDecimal::toCompare | ( | const XMLBigDecimal & | other | ) | const |
Compares this object to the specified object.
| other | the object to compare with. |
-1 value is less than other's 0 value equals to other's +1 value is greater than other's References XMLBigDecimal().