XMLAbstractDoubleFloat Class Reference

Inheritance diagram for XMLAbstractDoubleFloat:

XMLNumber XMemory XMLDouble XMLFloat

List of all members.

Public Types

enum  LiteralType {
  NegINF, PosINF, NaN, SpecialTypeNum,
  Normal
}

Public Member Functions

virtual ~XMLAbstractDoubleFloat ()
virtual XMLChgetRawData () const
 Return string representation of the decimal value.
virtual const XMLChgetFormattedString () const
 Return the original and converted value of the original data.
virtual int getSign () const
 Returns the sign of this number.
MemoryManagergetMemoryManager () const
bool isDataConverted () const
bool isDataOverflowed () const
double getValue () const
LiteralType getType () const

Static Public Member Functions

static XMLChgetCanonicalRepresentation (const XMLCh *const rawData, MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager)
static void normalizeDecimalPoint (char *const toNormal)

Protected Member Functions

 XMLAbstractDoubleFloat (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
void init (const XMLCh *const strValue)
virtual void checkBoundary (char *const strValue)=0
void convert (char *const strValue)

Static Protected Member Functions

static int compareValues (const XMLAbstractDoubleFloat *const lValue, const XMLAbstractDoubleFloat *const rValue, MemoryManager *const manager)
 Compares this object to the specified object.

Protected Attributes

double fValue
LiteralType fType
bool fDataConverted
bool fDataOverflowed


Member Enumeration Documentation

Enumerator:
NegINF 
PosINF 
NaN 
SpecialTypeNum 
Normal 


Constructor & Destructor Documentation

virtual XMLAbstractDoubleFloat::~XMLAbstractDoubleFloat (  )  [virtual]

XMLAbstractDoubleFloat::XMLAbstractDoubleFloat ( MemoryManager *const   manager = XMLPlatformUtils::fgMemoryManager  )  [protected]


Member Function Documentation

static XMLCh* XMLAbstractDoubleFloat::getCanonicalRepresentation ( const XMLCh *const   rawData,
MemoryManager *const   memMgr = XMLPlatformUtils::fgMemoryManager 
) [static]

virtual XMLCh* XMLAbstractDoubleFloat::getRawData (  )  const [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.

virtual const XMLCh* XMLAbstractDoubleFloat::getFormattedString (  )  const [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.

virtual int XMLAbstractDoubleFloat::getSign (  )  const [virtual]

Returns the sign of this number.

-1 negative 0 zero 1 positive

Implements XMLNumber.

MemoryManager * XMLAbstractDoubleFloat::getMemoryManager (  )  const

bool XMLAbstractDoubleFloat::isDataConverted (  )  const

References fDataConverted.

bool XMLAbstractDoubleFloat::isDataOverflowed (  )  const

References fDataOverflowed.

double XMLAbstractDoubleFloat::getValue (  )  const

References fValue.

XMLAbstractDoubleFloat::LiteralType XMLAbstractDoubleFloat::getType (  )  const

References fType.

static void XMLAbstractDoubleFloat::normalizeDecimalPoint ( char *const   toNormal  )  [static]

void XMLAbstractDoubleFloat::init ( const XMLCh *const   strValue  )  [protected]

static int XMLAbstractDoubleFloat::compareValues ( const XMLAbstractDoubleFloat *const   lValue,
const XMLAbstractDoubleFloat *const   rValue,
MemoryManager *const   manager 
) [static, protected]

Compares this object to the specified object.

The result is true if and only if the argument is not null and is an XMLAbstractDoubleFloat object that contains the same int value as this object.

Parameters:
lValue the object to compare with.
rValue the object to compare against.
manager The MemoryManager to use to allocate objects
Returns:
true if the objects are the same; false otherwise.

Referenced by XMLFloat::compareValues(), and XMLDouble::compareValues().

virtual void XMLAbstractDoubleFloat::checkBoundary ( char *const   strValue  )  [protected, pure virtual]

Implemented in XMLDouble, and XMLFloat.

void XMLAbstractDoubleFloat::convert ( char *const   strValue  )  [protected]


Member Data Documentation

double XMLAbstractDoubleFloat::fValue [protected]

Referenced by getValue().

Referenced by getType().

Referenced by isDataConverted().

Referenced by isDataOverflowed().


The documentation for this class was generated from the following file:

Generated on Fri Jan 29 15:30:49 2010 for Xerces-C++ by  doxygen 1.5.6