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.

55 lines
1.2 KiB

7 years ago
​
​
​
7 years ago
​
​
​
​
4 years ago
​
​
​
​
​
​
​
4 years ago
​
​
7 years ago
​
​
​
4 years ago
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICENGINE_H_INCL__
  2. #define __BASICENGINE_H_INCL__
  3. #include "basicObject.h"
  4. #include "basicMutex.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. private:
  14. basicMutex m_mWMProtector;
  15. uint8_t m_bWM;
  16. uint8_t m_bOWM;
  17. public:
  18. // Constructor
  19. basicEngine();
  20. // Destructor
  21. virtual ~basicEngine();
  22. virtual bool startService(){ return false; };
  23. virtual bool stopService(){ return true; };
  24. bool setWM( uint8_t s, bool hard = true );
  25. uint8_t getWM( void );
  26. uint8_t getOWM( void );
  27. void setBackOWM( void );
  28. };
  29. // TODO: Uncomment the copy constructor when you need it.
  30. //inline basicEngine::basicEngine(const basicEngine& src)
  31. //{
  32. // // TODO: copy
  33. //}
  34. // TODO: Uncomment the assignment operator when you need it.
  35. //inline basicEngine& basicEngine::operator=(const basicEngine& rhs)
  36. //{
  37. // if (this == &rhs) {
  38. // return *this;
  39. // }
  40. //
  41. // // TODO: assignment
  42. //
  43. // return *this;
  44. //}
  45. #endif // __BASICENGINE_H_INCL__