test-alg-config.cc File Reference

#include "AlgConfig.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 3 of file test-alg-config.cc.

References Registry::Get(), and Registry::Set().

Referenced by Anp::EventDisplay::Init().

00004 {
00005     AlgConfig ac;
00006 
00007     ac.Set("My big blah",5);
00008     ac.Set("My little blah",.0005);
00009     ac.Set("My double",6.9);
00010     ac.Set("My string", "blah blah blah!");
00011     ac.Set("My char", 'c');
00012 
00013     int i;
00014     ac.Get("My big blah",i);
00015     cerr << "`My big blah' is: `" << i << "'\n";
00016     ac.Get("My little blah",i);
00017     cerr << "`My little blah' is: `" << i << "'\n";
00018 
00019     double d;
00020     ac.Get("My double",d);
00021     cerr << "`My double' is: `" << d << "'\n";
00022 
00023     char* cptr;
00024     ac.Get("My string", cptr);
00025     cerr << "`My string' is: `" << cptr << "'\n";
00026 
00027     char c;
00028     ac.Get("My char",c);
00029     cerr << "`My char' is: `" << c << "'\n";
00030 
00031 
00032     return 0;
00033 } // end of main()


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1