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

TestEditor Class Reference

Inheritance diagram for TestEditor:

cfg::ConfigEditor List of all members.

Public Member Functions

 TestEditor (cfg::Config *cfg)
int EditConfig (cfg::Config &c)

Constructor & Destructor Documentation

TestEditor::TestEditor cfg::Config cfg  )  [inline]
 

Definition at line 42 of file testCfgEditor.cc.

00042 : cfg::ConfigEditor(cfg) { }


Member Function Documentation

int TestEditor::EditConfig cfg::Config c  )  [inline, virtual]
 

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   }


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 04:45:29 2009 for NOvA Offline by  doxygen 1.3.9.1