24 lines
726 B
C++
24 lines
726 B
C++
#ifndef SIMPLEACTIONHELPER_H_
|
|
#define SIMPLEACTIONHELPER_H_
|
|
|
|
#include <framework/action/ActionHelper.h>
|
|
|
|
class SimpleActionHelper: public ActionHelper {
|
|
public:
|
|
SimpleActionHelper(HasActionsIF* setOwner, MessageQueueIF* useThisQueue);
|
|
virtual ~SimpleActionHelper();
|
|
void step(ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
|
|
void finish(ReturnValue_t result = HasReturnvaluesIF::RETURN_OK);
|
|
ReturnValue_t reportData(SerializeIF* data);
|
|
void resetHelper();
|
|
protected:
|
|
void prepareExecution(MessageQueueId_t commandedBy, ActionId_t actionId, store_address_t dataAddress);
|
|
private:
|
|
bool isExecuting;
|
|
MessageQueueId_t lastCommander;
|
|
ActionId_t lastAction;
|
|
uint8_t stepCount;
|
|
};
|
|
|
|
#endif /* SIMPLEACTIONHELPER_H_ */
|