http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Download
Installation
Build

API Docs
Samples
Schema

FAQs
Programming
Migration

Releases
Bug-Reporting
Feedback

Y2K Compliance
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMLDouble Class Reference

#include <XMLDouble.hpp>

Inheritance diagram for XMLDouble

Inheritance graph
[legend]
Collaboration diagram for XMLDouble:

Collaboration graph
[legend]
List of all members.

Public Types

enum  LiteralType {
  NegINF, NegZero, PosZero, PosINF,
  NaN, SpecialTypeNum = 5, Normal
}
 Constructs a newly allocated XMLDouble object that represents the value represented by the string. More...


Public Methods

 XMLDouble (const XMLCh *const strValue)
 ~XMLDouble ()
 XMLDouble (const XMLDouble &toCopy)
virtual XMLCh* toString ()const
 Return string representation of the decimal value. More...

virtual int getSign ()const
 Returns the sign of this number. More...

bool operator== (const XMLDouble &toCompare)const
 Compares this object to the specified object. More...


Static Public Methods

int compareValues (const XMLDouble *const lValue,const XMLDouble *const rValue)
void reinitXMLDouble ()

Member Enumeration Documentation

enum XMLDouble::LiteralType
 

Constructs a newly allocated XMLDouble object that represents the value represented by the string.

Parameters:
the   String to be converted to an XMLDouble.
Exceptions:
NumberFormatException   if the String does not contain a parsable XMLDouble.
Enumeration values:
NegINF  
NegZero  
PosZero  
PosINF  
NaN  
SpecialTypeNum  
Normal  


Constructor & Destructor Documentation

XMLDouble::XMLDouble ( const XMLCh *const strValue )
 

XMLDouble::~XMLDouble ( )
 

XMLDouble::XMLDouble ( const XMLDouble & toCopy )
 


Member Function Documentation

int XMLDouble::compareValues ( const XMLDouble *const lValue,
const XMLDouble *const rValue ) [static]
 

int XMLDouble::getSign ( ) const [virtual]
 

Returns the sign of this number.

-1 negative 0 zero 1 positive

Reimplemented from XMLNumber.

bool XMLDouble::operator== ( const XMLDouble & toCompare ) const
 

Compares this object to the specified object.

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

Parameters:
obj   the object to compare with.
Returns:
true if the objects are the same; false otherwise.

void XMLDouble::reinitXMLDouble ( ) [static]
 

virtual XMLCh* XMLDouble::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:


Copyright © 2000 The Apache Software Foundation. All Rights Reserved.