Cat
ProcTimer.h
Go to the documentation of this file.
1 // $Id: ProcTimer.h,v 1.1 2006/06/07 13:04:01 fmachefe Exp $
2 #ifndef INC_PROCTIMER_H
3 #define INC_PROCTIMER_H 1
4 
5 // Include files
6 
7 #ifdef _NETWORK_
8 
9 class Processus;
10 
17 class ProcTimer : public DimTimer {
18 public:
20  ProcTimer( int , Processus* );
21  // virtual ~ProcTimer( ); ///< Destructor
22  void timeHandler ();
23  // void ignition ( ) ;
24 
29  void setDelay (int delay) {
30  msgSvc( INFO , "" , "Delay set to "+
31  itos( delay ) +
32  "s]" ); m_delay = delay;
33  }
34 
39  int delay () {
40  return m_delay;
41  }
42 
47  void setRunning (bool running) {
48  m_running = running;
49  }
50 
55  bool running () {
56  return m_running;
57  }
58 
59 private:
60  Processus *m_proc;
61  int m_delay;
62  bool m_running;
63 };
64 
65 #endif
66 
67 #endif // INC_PROCTIMER_H
std::string itos(int)
Definition: Tools.cpp:46