2016-06-15 23:48:41 +02:00
|
|
|
#ifndef PARAMETERHELPER_H_
|
|
|
|
#define PARAMETERHELPER_H_
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "ParameterMessage.h"
|
|
|
|
#include "ReceivesParameterMessagesIF.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
class ParameterHelper {
|
|
|
|
public:
|
|
|
|
ParameterHelper(ReceivesParameterMessagesIF *owner);
|
|
|
|
virtual ~ParameterHelper();
|
|
|
|
|
|
|
|
ReturnValue_t handleParameterMessage(CommandMessage *message);
|
|
|
|
|
|
|
|
ReturnValue_t initialize();
|
|
|
|
private:
|
|
|
|
ReceivesParameterMessagesIF *owner;
|
|
|
|
|
|
|
|
MessageQueueId_t ownerQueueId;
|
|
|
|
|
|
|
|
StorageManagerIF *storage;
|
|
|
|
|
|
|
|
ReturnValue_t sendParameter(MessageQueueId_t to, uint32_t id, const ParameterWrapper *description);
|
|
|
|
|
|
|
|
void rejectCommand(MessageQueueId_t to, ReturnValue_t reason, Command_t initialCommand);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PARAMETERHELPER_H_ */
|