From 3c577f0576118725193ae9c6f318ec1611dc3eaa Mon Sep 17 00:00:00 2001 From: mes5k Date: Sat, 7 Feb 2004 01:18:43 +0000 Subject: [PATCH] add multi float --- examples/test3.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/test3.cpp b/examples/test3.cpp index f24e64c..56489ef 100644 --- a/examples/test3.cpp +++ b/examples/test3.cpp @@ -54,6 +54,9 @@ void parseOptions(int argc, char** argv) MultiArg itest("i", "intTest", "multi int test", false,"int" ); cmd.add( itest ); + MultiArg ftest("f", "floatTest", "multi float test", false,"float" ); + cmd.add( ftest ); + UnlabeledMultiArg mtest("fileName","file names","fileNameString"); cmd.add( mtest ); // @@ -74,6 +77,10 @@ void parseOptions(int argc, char** argv) for ( int i = 0; (unsigned int)i < vi.size(); i++ ) cout << "[-i] " << i << " " << vi[i] << endl; + vector vf = ftest.getValue(); + for ( int i = 0; (unsigned int)i < vf.size(); i++ ) + cout << "[-f] " << i << " " << vf[i] << endl; + vector v = mtest.getValue(); for ( int i = 0; (unsigned int)i < v.size(); i++ ) cout << "[ ] " << i << " " << v[i] << endl;