/* * Rick Ratzel * 3/11/2004 * * Copyright (c) 2004 Richard L. Ratzel * see file "COPYRIGHT" for more details... */ #include #include int main( int argc, char** argv ) { if( argc != 2 ) { cout << "USAGE: " << argv[0] << " " << endl; exit( 1 ); } configfile cf( argv[1] ); CFObj vars = cf.getVars(); cout << "ALL VARS: " << vars << "\n" << endl; int numVars = vars.length(); for( int i = 0; i < numVars; i++ ) { cout << "VAR: " << vars[i] << " VAL: " << cf.getValue( vars[i] ) << endl; } cout << "PI = " << cf.getValue( "dictionary" )[cf.getValue( "pi" )] << endl; return 0; }