Inheritance diagram for TestEditor:

Public Member Functions | |
| TestEditor (cfg::Config *cfg) | |
| int | EditConfig (cfg::Config &c) |
|
|
Definition at line 42 of file testCfgEditor.cc. 00042 : cfg::ConfigEditor(cfg) { }
|
|
|
The user edit function. Modify cfg at by some means. Return 1 to apply changes made to cfg, 0 to discard them Reimplemented from cfg::ConfigEditor. Definition at line 43 of file testCfgEditor.cc. References cfg::Config::Par(). 00043 {
00044 std::cerr << "| From: "
00045 << c("i") << ","
00046 << c("f") << ","
00047 << c("s")
00048 << std::endl;
00049 c.Par("i").Set(666);
00050 c.Par("f").Set(66.6);
00051 c.Par("s").Set(std::string("KAOS"));
00052 std::cerr << "| To: "
00053 << c("i") << ","
00054 << c("f") << ","
00055 << c("s")
00056 << std::endl;
00057 return 1;
00058 }
|
1.3.9.1