Cat
lbcat-cmake
CatKernel
inc
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
43
StatusCode
init
() {
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.
69
TestSuite
*
m_testSuite
;
70
};
71
#endif // INC_COMPUTER_H
Object::info
void info(std::string mymsg)
Definition:
Object.h:38
Computer
Definition:
Computer.py:1
Computer::help
void help()
Definition:
Computer.h:37
Computer::m_testSuite
TestSuite * m_testSuite
Definition:
Computer.h:60
TestSuite
Definition:
TestSuite.py:1
Computer::update
void update()
Definition:
Computer.h:60
Computer::reset
void reset()
Definition:
Computer.h:55
Computer::Computer
Computer()
Standard constructor.
Definition:
Computer.cpp:17
Element
Definition:
Element.h:14
Computer::init
StatusCode init()
Definition:
Computer.h:43
Object::name
std::string name() const
Definition:
Object.h:28
TestSuite.h
StatusCode::SUCCESS
Definition:
StatusCode.h:20
StatusCode
Definition:
StatusCode.h:16
Computer::~Computer
virtual ~Computer()
Destructor.
Definition:
Computer.cpp:28
Element.h
Generated by
1.8.13