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.

50 lines
1.1 KiB

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