Cat
Computer.h
Go to the documentation of this file.
1 // $Id: $
2 //-----------------------------------------------------------------------------
3 //
4 // Package : Defines the first hardware element, the computer.
5 // Description:
6 //
7 // Author(s) : F. Machefert -
8 // Date : January 20, 2007
9 //
10 //-----------------------------------------------------------------------------
11 #ifndef INC_COMPUTER_H
12 #define INC_COMPUTER_H 1
13 
14 #include "Element.h"
15 #include "proc/TestSuite.h"
16 
17 // Include files
18 
26 class Computer : public Element {
27 public:
29  Computer( );
30 
31  virtual ~Computer( );
32 
33 
37  void help() { info("Computer "+name()+". No help.","Computer::help"); };
38 
44  info("Computer "+name()+" initialization.","Computer::init");
45  return StatusCode::SUCCESS;
46  };
47 
55  void reset() { info("Computer "+name()+" reset.","Computer::reset");};
56 
60  void update () {info("Computer "+name()+". Nothing to do.","Computer::update");};
61 
62 protected:
63 
64 private:
65  // Specific to CATKernel
66  // CATKernel is not dynamically loaded
67  // TestSuite is not created and linked to the db
68  // (done during dynamic loading). Perform it at Computer object creation.
70 };
71 #endif // INC_COMPUTER_H
void info(std::string mymsg)
Definition: Object.h:38
void help()
Definition: Computer.h:37
TestSuite * m_testSuite
Definition: Computer.h:60
void update()
Definition: Computer.h:60
void reset()
Definition: Computer.h:55
Computer()
Standard constructor.
Definition: Computer.cpp:17
StatusCode init()
Definition: Computer.h:43
std::string name() const
Definition: Object.h:28
virtual ~Computer()
Destructor.
Definition: Computer.cpp:28