You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICENGINE_H_INCL__
  2. #define __BASICENGINE_H_INCL__
  3. #include "basicMutex.h"
  4. #include "basicObject.h"
  5. /**
  6. * TODO: Add class description
  7. *
  8. * @author Gagua
  9. */
  10. #define ENG_WM_UNBORN 0x00
  11. #define ENG_WM_DEAD 0xFF
  12. class basicEngine : public basicObject
  13. {
  14. private:
  15. basicMutex m_mWMProtector;
  16. uint8_t m_bWM;
  17. uint8_t m_bOWM;
  18. public:
  19. // Constructor
  20. basicEngine();
  21. // Destructor
  22. virtual ~basicEngine();
  23. virtual bool startService()
  24. {
  25. return false;
  26. }
  27. virtual bool stopService()
  28. {
  29. return true;
  30. }
  31. bool setWM(uint8_t s, bool hard = true);
  32. uint8_t getWM(void);
  33. uint8_t getOWM(void);
  34. void setBackOWM(void);
  35. };
  36. // TODO: Uncomment the copy constructor when you need it.
  37. // inline basicEngine::basicEngine(const basicEngine& src)
  38. //{
  39. // // TODO: copy
  40. //}
  41. // TODO: Uncomment the assignment operator when you need it.
  42. // inline basicEngine& basicEngine::operator=(const basicEngine& rhs)
  43. //{
  44. // if (this == &rhs) {
  45. // return *this;
  46. // }
  47. //
  48. // // TODO: assignment
  49. //
  50. // return *this;
  51. //}
  52. #endif // __BASICENGINE_H_INCL__