eive-obsw/test/DummyParameter.h

25 lines
732 B
C
Raw Normal View History

2021-07-16 21:51:30 +02:00
#ifndef BSP_Q7S_CORE_NVMPARAMS_PARAMETERDEFINITIONS_H_
#define BSP_Q7S_CORE_NVMPARAMS_PARAMETERDEFINITIONS_H_
2022-01-17 15:58:27 +01:00
#include <filesystem>
2021-07-16 21:51:30 +02:00
#include <nlohmann/json.hpp>
2022-01-17 15:58:27 +01:00
#include "mission/memory/NVMParameterBase.h"
2021-07-16 21:51:30 +02:00
2022-01-17 15:58:27 +01:00
class DummyParameter : public NVMParameterBase {
public:
static constexpr char DUMMY_KEY_PARAM_1[] = "dummy1";
static constexpr char DUMMY_KEY_PARAM_2[] = "dummy2";
2021-07-16 21:51:30 +02:00
2022-01-17 15:58:27 +01:00
DummyParameter(std::string mountPrefix, std::string jsonFileName)
: NVMParameterBase(mountPrefix + "/conf/" + jsonFileName), mountPrefix(mountPrefix) {
insertValue(DUMMY_KEY_PARAM_1, 1);
insertValue(DUMMY_KEY_PARAM_2, "blablub");
}
2021-07-16 21:51:30 +02:00
2022-01-17 15:58:27 +01:00
private:
std::string mountPrefix;
2021-07-16 21:51:30 +02:00
};
#endif /* BSP_Q7S_CORE_NVMPARAMS_PARAMETERDEFINITIONS_H_ */