Xerces-C++
3.1.2
|
Public Types | |
enum | { LESS_THAN = -1, EQUAL = 0, GREATER_THAN = 1, INDETERMINATE = 2 } |
enum | NumberType { Float, Double, BigDecimal, DateTime, UnKnown } |
Public Member Functions | |
virtual | ~XMLNumber () |
virtual XMLCh * | getRawData () const =0 |
Return string representation of the decimal value. More... | |
virtual const XMLCh * | getFormattedString () const =0 |
Return the original and converted value of the original data. More... | |
virtual int | getSign () const =0 |
Returns the sign of this number. More... | |
Public Member Functions inherited from XMemory | |
void * | operator new (size_t size) |
This method overrides operator new. More... | |
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. More... | |
void * | operator new (size_t size, void *ptr) |
This method overrides placement operator new. More... | |
void | operator delete (void *p) |
This method overrides operator delete. More... | |
void | operator delete (void *p, MemoryManager *memMgr) |
This method provides a matching delete for the custom operator new. More... | |
void | operator delete (void *p, void *ptr) |
This method provides a matching delete for the placement new. More... | |
Static Public Member Functions | |
static XMLNumber * | loadNumber (XMLNumber::NumberType numType, XSerializeEngine &serEng) |
Protected Member Functions | |
XMLNumber () | |
XMLNumber (const XMLNumber &) | |
Protected Member Functions inherited from XMemory | |
XMemory () | |
Protected default constructor. More... | |
|
virtual |
|
protected |
|
protected |
|
pure 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
Implemented in XMLDateTime, XMLAbstractDoubleFloat, and XMLBigDecimal.
|
pure 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
Implemented in XMLDateTime, XMLAbstractDoubleFloat, and XMLBigDecimal.
|
pure virtual |
Returns the sign of this number.
-1 negative 0 zero 1 positive
Implemented in XMLDateTime, XMLAbstractDoubleFloat, and XMLBigDecimal.
|
static |