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

TestObs Class Reference

Test the CfgTable and CfgObserver classes. More...

Inheritance diagram for TestObs:

cfg::Observer List of all members.

Public Member Functions

 TestObs (const char *name, const char *config, const char *version)
void Update (const cfg::Config &c)

Public Attributes

std::string fName

Detailed Description

Test the CfgTable and CfgObserver classes.

Definition at line 12 of file testCfgTable.cc.


Constructor & Destructor Documentation

TestObs::TestObs const char *  name,
const char *  config,
const char *  version
[inline]
 

Definition at line 15 of file testCfgTable.cc.

References fName, and cfg::Observer::SetWatch().

00016   {
00017     fName = name;
00018     this->SetWatch(config,version);
00019   }


Member Function Documentation

void TestObs::Update const cfg::Config c  )  [inline, virtual]
 

Implements cfg::Observer.

Definition at line 21 of file testCfgTable.cc.

References fName, cfg::Config::GetName(), and cfg::Config::GetVersion().

00022   {
00023     std::cout << 
00024       "TestObs: " << fName <<
00025       " received update from " << c.GetName() << 
00026       "." << c.GetVersion() << std::endl;
00027   }


Member Data Documentation

std::string TestObs::fName
 

Definition at line 28 of file testCfgTable.cc.

Referenced by TestObs(), and Update().


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