From f34eb76357fdfc314d6451fd11a2e4d6fcfce434 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 15 Apr 2013 15:28:12 -0600 Subject: Initial checkin. This project will most likely just be stuck into libbu++, but I didn't want to deal with building it all in windows. --- src/number.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/number.h (limited to 'src/number.h') diff --git a/src/number.h b/src/number.h new file mode 100644 index 0000000..4ada829 --- /dev/null +++ b/src/number.h @@ -0,0 +1,30 @@ +#ifndef NUMBER_H +#define NUMBER_H + +#include +#include "packedintarray.h" + +class Number +{ +public: + Number( int iOrd=0 ); + Number( const Bu::String &sData, int iOrd=0 ); + virtual ~Number(); + + Number operator+( const Number &rhs ) const; + + operator Bu::String() const + { + return aInt.toString(); + } + + Bu::String toString() const { return aInt.toString(); } + + int digit( int iOrder ) const; + +private: + int iOrd; + PackedIntArray aInt; +}; + +#endif -- cgit v1.2.3