]> Creatis software - cpPlugins.git/blob - appli/examples/Parameters.cxx
Moved to version 1.0
[cpPlugins.git] / appli / examples / Parameters.cxx
1 // =========================================================================
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // =========================================================================
4
5 #include <iostream>
6 #include <cpPlugins/Parameters.h>
7
8 int main( int argc, char* argv[] )
9 {
10   cpPlugins::Parameters p;
11
12   /* TODO
13      p.SetInValue( "a", 9.0 );
14      p.SetInValue( "b", true );
15      p.SetInValue( "c", 7 );
16      p.SetInValue( "d", -8 );
17      p.SetInValue( "e", std::string( "Hello world!" ) );
18
19      p.ConfigureInputSet< bool >( "f" );
20      p.ConfigureInputSet< char >( "g" );
21      p.ConfigureInputSet< short >( "h" );
22      p.ConfigureInputSet< int >( "i" );
23      p.ConfigureInputSet< long >( "j" );
24      p.ConfigureInputSet< unsigned char >( "k" );
25      p.ConfigureInputSet< unsigned short >( "l" );
26      p.ConfigureInputSet< unsigned int >( "m" );
27      p.ConfigureInputSet< unsigned long >( "n" );
28      p.ConfigureInputSequence< float >( "o" );
29      p.ConfigureInputSet< double >( "p" );
30      p.ConfigureInputSet< std::string >( "q" );
31
32      p.AddToInputSet( "f", true );
33      p.AddToInputSet( "f", false );
34      p.AddToInputSet( "f", true );
35      p.AddToInputSet( "g", 'z' );
36      p.AddToInputSet( "g", 'b' );
37      p.AddToInputSet( "g", 'c' );
38      p.AddToInputSet( "g", 'a' );
39      p.AddToInputSet( "g", 'b' );
40      p.AddToInputSet( "g", 'a' );
41      p.AddToInputSet( "q", std::string( "hello" ) );
42      p.AddToInputSet( "q", std::string( "world" ) );
43      p.AddToInputSet( "q", std::string( "!" ) );
44      p.AddToInputSequence( "o", -1 );
45      p.AddToInputSequence( "o", 2.1 );
46      p.AddToInputSequence( "o", -3.2 );
47      p.AddToInputSequence( "o", 4.3 );
48      p.AddToInputSequence( "o", -5.4 );
49      p.AddToInputSequence( "o", 6.5 );
50
51      std::cout << p << std::endl;
52   */
53   return( 0 );
54 }
55
56 // eof - $RCSfile$