Bayonne2 / Common C++ 2 Framework
|
A number manipulation class. More...
#include <numbers.h>
Public Member Functions | |
Number (char *buffer, unsigned size) | |
Create an instance of a number. More... | |
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) |
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.
Number::Number | ( | char * | buffer, |
unsigned | size | ||
) |
Create an instance of a number.
buffer | or NULL if created internally. |
size | use - values for zero filled. |
long Number::getValue | ( | ) | const |
int Number::operator!= | ( | const Number & | num | ) |
long Number::operator++ | ( | ) |
long Number::operator+= | ( | const long | value | ) |
long Number::operator-- | ( | ) |
long Number::operator-= | ( | const long | value | ) |
int Number::operator< | ( | const Number & | num | ) |
int Number::operator<= | ( | const Number & | num | ) |
long Number::operator= | ( | const long | value | ) |
int Number::operator== | ( | const Number & | num | ) |
int Number::operator> | ( | const Number & | num | ) |
int Number::operator>= | ( | const Number & | num | ) |
void Number::setValue | ( | long | value | ) |
|
friend |
|
friend |
|
friend |
|
friend |