From ce68e816bd82612c14f3492e8bc969da9bfab06c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 9 May 2013 15:24:11 -0600 Subject: Added better filtering in Number::set, and cli options. The command line options let you set the initial radix/scale, and there's a function te test if any number is prime, that's fun. --- src/options.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/options.h') diff --git a/src/options.h b/src/options.h index 11bf896..1085e1e 100644 --- a/src/options.h +++ b/src/options.h @@ -9,9 +9,16 @@ public: Options( int argc, char *argv[] ); virtual ~Options(); + int getScale() const { return iScale; } + int getRadix() const { return iRadix; } + private: int selfTest( Bu::StringArray aArgs ); int textPrimes( Bu::StringArray aArgs ); + int isPrime( Bu::StringArray aArgs ); + + int iScale; + int iRadix; }; #endif -- cgit v1.2.3