Inheritance diagram for TestBuilder:

Public Member Functions | |
| void | BuildCfg1 () |
| void | BuildCfg2 () |
Definition at line 17 of file testCfgEditor.cc.
|
|
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 }
|
|
|
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 }
|
1.3.5