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

#ifndef __BASICENGINE_H_INCL__
#define __BASICENGINE_H_INCL__
#include "basicMutex.h"
#include "basicObject.h"
/**
* TODO: Add class description
*
* @author Gagua
*/
#define ENG_WM_UNBORN 0x00
#define ENG_WM_DEAD 0xFF
class basicEngine : public basicObject
{
private:
basicMutex m_mWMProtector;
uint8_t m_bWM;
uint8_t m_bOWM;
public:
// Constructor
basicEngine();
// Destructor
virtual ~basicEngine();
virtual bool startService()
{
return false;
}
virtual bool stopService()
{
return true;
}
bool setWM(uint8_t s, bool hard = true);
uint8_t getWM(void);
uint8_t getOWM(void);
void setBackOWM(void);
};
// TODO: Uncomment the copy constructor when you need it.
// inline basicEngine::basicEngine(const basicEngine& src)
//{
// // TODO: copy
//}
// TODO: Uncomment the assignment operator when you need it.
// inline basicEngine& basicEngine::operator=(const basicEngine& rhs)
//{
// if (this == &rhs) {
// return *this;
// }
//
// // TODO: assignment
//
// return *this;
//}
#endif // __BASICENGINE_H_INCL__