31 lines
843 B
C++
31 lines
843 B
C++
#ifndef FRAMEWORK_PARAMETERS_PARAMETERHELPER_H_
|
|
#define FRAMEWORK_PARAMETERS_PARAMETERHELPER_H_
|
|
|
|
#include <framework/ipc/MessageQueueIF.h>
|
|
#include <framework/parameters/ParameterMessage.h>
|
|
#include <framework/parameters/ReceivesParameterMessagesIF.h>
|
|
|
|
class ParameterHelper {
|
|
public:
|
|
ParameterHelper(ReceivesParameterMessagesIF *owner);
|
|
virtual ~ParameterHelper();
|
|
|
|
ReturnValue_t handleParameterMessage(CommandMessage *message);
|
|
|
|
ReturnValue_t initialize();
|
|
private:
|
|
ReceivesParameterMessagesIF *owner;
|
|
|
|
MessageQueueId_t ownerQueueId = MessageQueueIF::NO_QUEUE;
|
|
|
|
StorageManagerIF *storage = nullptr;
|
|
|
|
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_ */
|