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

JobCDemoModuleB.cxx

Go to the documentation of this file.
00001 
00002 // $Id: JobCDemoModuleB.cxx,v 1.4 2002/01/16 22:57:09 messier Exp $
00003 //
00004 // An empty implementation of a job module
00005 //
00006 // messier@huhepl.harvard.edu
00008 #include "JobControl/test/JobCDemoModuleB.h"
00009 #include "MessageService/MsgService.h"
00010 #include "JobControl/JobCModuleRegistry.h" // For JOBMODULE macro
00011 
00012 CVSID("$Id: JobCDemoModuleB.cxx,v 1.4 2002/01/16 22:57:09 messier Exp $");
00013 // Declare this module to JobControll. Arguments are:
00014 //  (1) The class name 
00015 //  (2) The human-readable name 
00016 //  (3) A short, human-readable description of what the module does
00017 JOBMODULE(JobCDemoModuleB,
00018           "DemoB",
00019           "A dummy module used for testing JobControl");
00020 
00021 //......................................................................
00022 
00023 JobCDemoModuleB::JobCDemoModuleB() : fNreco(0), fNana(0)
00024 {
00025   MSG("JobC", Msg::kDebug) << "** DemoModuleB::Constructor\n";
00026 }
00027 
00028 //......................................................................
00029 
00030 JobCDemoModuleB::~JobCDemoModuleB() 
00031 {
00032   MSG("JobC", Msg::kDebug) << "** DemoModuleB::Destructor\n";
00033 }
00034 
00035 //......................................................................
00036 
00037 JobCResult JobCDemoModuleB::Ana(const MomNavigator *mom)
00038 {
00039   ++fNana;
00040   MSG("JobC", Msg::kInfo) 
00041     << "** DemoModuleB(" << this << ")::Ana (" << mom << ") nAna=" << 
00042     fNana << "\n";
00043   return JobCResult::kAOK;
00044 }
00045 
00046 //......................................................................
00047 
00048 JobCResult JobCDemoModuleB::Reco(MomNavigator *mom)
00049 {
00050   ++fNreco;
00051   MSG("JobC", Msg::kInfo) 
00052     << "** DemoModuleB(" << this << ")::Reco(" << mom << ") nReco=" << 
00053     fNreco << "\n";
00054   return JobCResult::kPassed;
00055 }
00056 
00057 //......................................................................
00058 
00059 void JobCDemoModuleB::HandleCommand(JobCommand *cmd) 
00060 {
00061   MSG("JobC", Msg::kInfo) << 
00062     "** DemoModuleB::HandleCommand(" << cmd << ")\n";
00063 }
00064 
00065 //......................................................................
00066 
00067 void JobCDemoModuleB::Help() 
00068 {
00069   MSG("JobC", Msg::kInfo) << "** DemoModuleB::Help()\n";
00070 }
00071 
00072 //......................................................................
00073 
00074 void JobCDemoModuleB::Report() 
00075 {
00076   MSG("JobC", Msg::kInfo) << "** DemoModuleB::Report()\n";
00077 }
00078 
00079 //......................................................................
00080 
00081 void JobCDemoModuleB::Reset() 
00082 {
00083   MSG("JobC", Msg::kInfo) << "** DemoModuleB::Reset()\n";
00084 }
00085 

Generated on Mon Feb 15 11:06:48 2010 for loon by  doxygen 1.3.9.1