Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TestBuilder Class Reference

Test the handling of edit and build functions. More...

Inheritance diagram for TestBuilder:

cfg::ConfigBuilder List of all members.

Public Member Functions

void BuildCfg1 ()
void BuildCfg2 ()

Detailed Description

Test the handling of edit and build functions.

Definition at line 17 of file testCfgEditor.cc.


Member Function Documentation

void TestBuilder::BuildCfg1  )  [inline]
 

Definition at line 20 of file testCfgEditor.cc.

References cfg::Config::AdoptParam(), and cfg::ConfigBuilder::Publish().

Referenced by main().

00020                    {
00021     cfg::Config* cfg1 =new cfg::Config("Cfg1","test",__FILE__);
00022     cfg1->AdoptParam(new cfg::Param("i",86,                    "an integer"));
00023     cfg1->AdoptParam(new cfg::Param("f",86.6,                  "a float"   ));
00024     cfg1->AdoptParam(new cfg::Param("s",std::string("D.Adams"),"Agent 86"  ));
00025     this->Publish(cfg1);
00026   }

void TestBuilder::BuildCfg2  )  [inline]
 

Definition at line 27 of file testCfgEditor.cc.

References cfg::Config::AdoptParam(), and cfg::ConfigBuilder::Publish().

Referenced by main().

00027                    {
00028     cfg::Config* cfg2 =new cfg::Config("Cfg2","default",__FILE__);
00029     cfg2->AdoptParam(new cfg::Param("i",99,                     "an integer"));
00030     cfg2->AdoptParam(new cfg::Param("f",99.9,                   "a float"   ));
00031     cfg2->AdoptParam(new cfg::Param("s",std::string("B.Feldon"),"Agent 99"  ));
00032     this->Publish(cfg2);
00033   }


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 02:05:32 2008 for NOvA Offline by doxygen 1.3.5