UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
manager.hpp
1 /* dcf_manager.hpp */
2 /* $Id$ */
3 #ifndef __dcf_manager_hpp
4 #define __dcf_manager_hpp
5 
6 #include <ctime>
7 
8 #ifdef GE_BUILD
9 #include <types.hpp>
10 #else
11 #include <dcf/types.hpp>
12 #endif
13 
14 
16 namespace dcf
17 {
19  class Manager
20  {
21  public:
22 
24  Manager();
25 
27  virtual ~Manager();
28 
30  virtual Manager* clone() const = 0;
31 
33  virtual size_t getUnitsCount() const = 0;
34 
36  virtual dcf::error_t unitAlloc(int unit_id) = 0;
37 
40  virtual dcf::error_t unitFree(int unit_id) = 0;
41 
43  virtual dcf::error_t unitsFree() = 0;
44 
47  virtual dcf::error_t isAllocatedUnit(int unit_id, bool &is_allocated) const = 0;
48 
52  virtual dcf::error_t unitPower(int unit_id, double &power) const = 0;
53 
55  dcf::mantype_t type() const {return m_type;}
56 
57  protected:
58 
61  };
62 };
63 
64 #endif /* manager.hpp */
error_t
Definition: types.hpp:11
Definition: manager.hpp:19
mantype_t
Definition: types.hpp:24
virtual ~Manager()
virtual dcf::error_t unitAlloc(int unit_id)=0
virtual Manager * clone() const =0
virtual dcf::error_t unitsFree()=0
virtual size_t getUnitsCount() const =0
virtual dcf::error_t unitFree(int unit_id)=0
dcf::mantype_t type() const
Definition: manager.hpp:55
dcf::mantype_t m_type
Definition: manager.hpp:60
virtual dcf::error_t unitPower(int unit_id, double &power) const =0
virtual dcf::error_t isAllocatedUnit(int unit_id, bool &is_allocated) const =0