SYNOPSIS

#include <numbers.h>

Inherited by ost::DateNumber, and ost::ZNumber.

Public Member Functions

Number (char *buffer, unsigned size)

Create an instance of a number. void setValue (long value)

const char * getBuffer () const

long getValue () const

long operator() ()

operator long ()

operator char * ()

long operator= (const long value)

long operator+= (const long value)

long operator-= (const long value)

long operator-- ()

long operator++ ()

int operator== (const Number &num)

int operator!= (const Number &num)

int operator< (const Number &num)

int operator<= (const Number &num)

int operator> (const Number &num)

int operator>= (const Number &num)

Protected Attributes

char * buffer

unsigned size

Friends

long operator+ (const Number &num, const long val)

long operator+ (const long val, const Number &num)

long operator- (const Number &num, long val)

long operator- (const long val, const Number &num)

Detailed Description

A number manipulation class.

This is used to extract, convert, and manage simple numbers that are represented in C ascii strings in a very quick and optimal way.

Author:

David Sugar [email protected] number manipulation.

Constructor & Destructor Documentation

ost::Number::Number (char *buffer, unsignedsize)

Create an instance of a number.

Parameters:

buffer or NULL if created internally.

size use - values for zero filled.

Member Function Documentation

const char* ost::Number::getBuffer () const\fC [inline]\fP

long ost::Number::getValue () const

ost::Number::operator char * ()\fC [inline]\fP

ost::Number::operator long ()\fC [inline]\fP

int ost::Number::operator!= (const \fBNumber\fP &num)

long ost::Number::operator() ()\fC [inline]\fP

long ost::Number::operator++ ()

long ost::Number::operator+= (const longvalue)

long ost::Number::operator-- ()

long ost::Number::operator-= (const longvalue)

int ost::Number::operator< (const \fBNumber\fP &num)

int ost::Number::operator<= (const \fBNumber\fP &num)

long ost::Number::operator= (const longvalue)

int ost::Number::operator== (const \fBNumber\fP &num)

int ost::Number::operator> (const \fBNumber\fP &num)

int ost::Number::operator>= (const \fBNumber\fP &num)

void ost::Number::setValue (longvalue)

Friends And Related Function Documentation

long operator+ (const \fBNumber\fP &num, const longval)\fC [friend]\fP

long operator+ (const longval, const \fBNumber\fP &num)\fC [friend]\fP

long operator- (const \fBNumber\fP &num, longval)\fC [friend]\fP

long operator- (const longval, const \fBNumber\fP &num)\fC [friend]\fP

Member Data Documentation

char* ost::Number::buffer\fC [protected]\fP

unsigned ost::Number::size\fC [protected]\fP

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.