summaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-05-09 15:24:11 -0600
committerMike Buland <mike@xagasoft.com>2013-05-09 15:24:11 -0600
commitce68e816bd82612c14f3492e8bc969da9bfab06c (patch)
treebe50fa63ce720ecde2748df3df83f38a284c3ff6 /src/options.h
parent722e0ef0ea2624c1cd9bd5ca69833e37dc09f97f (diff)
downloadclic-ce68e816bd82612c14f3492e8bc969da9bfab06c.tar.gz
clic-ce68e816bd82612c14f3492e8bc969da9bfab06c.tar.bz2
clic-ce68e816bd82612c14f3492e8bc969da9bfab06c.tar.xz
clic-ce68e816bd82612c14f3492e8bc969da9bfab06c.zip
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.
Diffstat (limited to '')
-rw-r--r--src/options.h7
1 files changed, 7 insertions, 0 deletions
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:
9 Options( int argc, char *argv[] ); 9 Options( int argc, char *argv[] );
10 virtual ~Options(); 10 virtual ~Options();
11 11
12 int getScale() const { return iScale; }
13 int getRadix() const { return iRadix; }
14
12private: 15private:
13 int selfTest( Bu::StringArray aArgs ); 16 int selfTest( Bu::StringArray aArgs );
14 int textPrimes( Bu::StringArray aArgs ); 17 int textPrimes( Bu::StringArray aArgs );
18 int isPrime( Bu::StringArray aArgs );
19
20 int iScale;
21 int iRadix;
15}; 22};
16 23
17#endif 24#endif