UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
calc_block.hpp
1 /* calc_block.hpp */
2 /* $Id$ */
3 #ifndef __dcf_calc_block_hpp
4 #define __dcf_calc_block_hpp
5 
6 #ifdef GE_BUILD
7 #include <manager.hpp>
8 #else
9 #include <dcf/manager.hpp>
10 #endif
11 
12 #include <unistd.h>
13 
14 namespace dcf
15 {
17  class CalcBlock
18  {
19  public:
20 
23 
25  CalcBlock(const dcf::CalcBlock &cb);
26 
28  virtual ~CalcBlock();
29 
31  virtual void start();
32 
34  virtual void stop();
35 
37  virtual void wait();
38 
40  virtual bool running() const {return m_is_running;}
41 
43  const dcf::Manager* manager() const {return m_manager;}
44 
47 
48  protected:
49 
52 
55 
58  virtual void run();//= 0;
59 
60  private:
61 
63  bool m_is_running;
64 
66  useconds_t m_sleep_delay;
67  };
68 };
69 
70 #endif /* calc_block.hpp */
virtual void stop()
error_t
Definition: types.hpp:11
Definition: manager.hpp:19
dcf::error_t resultCode()
Definition: calc_block.hpp:46
const dcf::Manager * manager() const
Definition: calc_block.hpp:43
Definition: calc_block.hpp:17
virtual ~CalcBlock()
dcf::Manager * m_manager
Definition: calc_block.hpp:51
virtual void wait()
CalcBlock(const dcf::Manager &manager)
dcf::error_t m_result_code
Definition: calc_block.hpp:54
virtual void start()
virtual bool running() const
Definition: calc_block.hpp:40
virtual void run()