2023-02-13 11:28:27 +01:00
|
|
|
#include "LocalParameterHandler.h"
|
|
|
|
#include <fsfw/serviceinterface/ServiceInterface.h>
|
|
|
|
|
|
|
|
LocalParameterHandler::LocalParameterHandler(std::string sdRelativeName, SdCardMountedIF* sdcMan)
|
2023-02-22 07:15:19 +01:00
|
|
|
: NVMParameterBase(), sdRelativeName(sdRelativeName), sdcMan(sdcMan) {}
|
2023-02-13 11:28:27 +01:00
|
|
|
|
|
|
|
LocalParameterHandler::~LocalParameterHandler() {
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t LocalParameterHandler::initialize() {
|
|
|
|
std::string mountPrefix = sdcMan->getCurrentMountPrefix();
|
|
|
|
std::string fullname = mountPrefix + "/" + sdRelativeName;
|
|
|
|
setFullName(fullname);
|
|
|
|
ReturnValue_t result = readJsonFile();
|
|
|
|
if (result != returnvalue::OK) {
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
return returnvalue::OK;
|
|
|
|
}
|
|
|
|
|