#ifndef __BASICENGINE_H_INCL__ #define __BASICENGINE_H_INCL__ #include "basicObject.h" #include "basicMutex.h" /** * TODO: Add class description * * @author Gagua */ class basicEngine: public basicObject { private: basicMutex m_mWMProtector; uint8_t m_bWM; public: // Constructor basicEngine(); // Destructor virtual ~basicEngine(); virtual bool startService(){ return false; }; virtual bool stopService(){ return true; }; void setWM( uint8_t s ){ m_mWMProtector.lock(); m_bWM = s; m_mWMProtector.unlock(); }; uint8_t getWM( void ){ uint8_t s; m_mWMProtector.lock(); s = m_bWM; m_mWMProtector.unlock(); return s; }; }; // Constructor implementation inline basicEngine::basicEngine():basicObject(){}; // Destructor implementation inline basicEngine::~basicEngine(){}; // 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__