hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ComponentBase.hpp
Go to the documentation of this file.
1 #ifndef COMPONENT_BASE_HPP
2 #define COMPONENT_BASE_HPP
3 
4 #include <Poco/SharedPtr.h>
5 
6 #include "DataBase.hpp"
7 
8 namespace HCE
9 {
10  namespace component
11  {
12  class ComponentBase : public DataBase
13  {
14  protected:
15  bool _isBusy;
16  public:
17  ComponentBase(ComponentType inType = CT_DEFAULT):DataBase(inType), _isBusy(false) {}
18  bool getIsBusy() {return _isBusy;}
19  void setIsBusy(bool isBusy) {_isBusy = isBusy;}
20  virtual Poco::SharedPtr<DataBase> process(Poco::SharedPtr<DataBase> inData) = 0;
21  virtual ~ComponentBase() {}
22  };
23  }
24 }
25 
26 #endif