Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

util::StreamTokenizer::NumberToken Class Reference

#include <StreamTokenizer.h>

Inheritance diagram for util::StreamTokenizer::NumberToken:

util::StreamTokenizer::Token util::Object List of all members.

Detailed Description

Number token represents a numerical value, i.e.

a sequence of characters labeled as TOKEN_NUMBER.


Public Methods

 NumberToken (std::string str, double number)
 Create a new number token with the given contents.

double getNumber () const
 Get the number this token represents.

std::string getNumberString () const
 Get the number as it was read.


Constructor & Destructor Documentation

util::StreamTokenizer::NumberToken::NumberToken std::string    str,
double    number
[inline]
 

Create a new number token with the given contents.

Parameters:
str  the number exactly as it was read
number  the numerical value of the number


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.