Motorcortex Core  version: 2.7.6
up_version1.h
1 /*
2  * Developer : Mark Verrijt (mark.verrijt@vectioneer.com),
3  * Alexey Zakharov (alexey.zakharov@vectioneer.com)
4  * All rights reserved. Copyright (c) 2021 VECTIONEER.
5  */
6 
7 #ifndef MOTORCORTEX_CORE_PS_USERPARAMSV1_H
8 #define MOTORCORTEX_CORE_PS_USERPARAMSV1_H
9 
10 #include "cmdline_config.h"
11 #include "up_base.h"
12 
13 namespace mcx::user_parameters {
14 
16 public:
17  ~UserParametersVersion1() override = default;
18  UserParametersData load(const nlohmann::json& json) override;
19 
20 private:
21  static const nlohmann::json& getChildren(const nlohmann::json& json);
22  void loadUserParameter(std::string path, const nlohmann::json& json, UserParametersData& user_parameters) const;
23  void loadUserParameters(const std::string& path, const nlohmann::json& json,
24  UserParametersData& user_parameters) const;
25  static const std::map<std::string, mcx::cmd_line::FieldDesc>& getFields();
26 };
27 
28 } // namespace mcx::user_parameters
29 
30 #endif // MOTORCORTEX_CORE_PS_USERPARAMSV1_H
mcx::user_parameters::UserParametersData
Definition: up_base.h:32
mcx::user_parameters::UserParametersBase
Definition: up_base.h:40
mcx::user_parameters::UserParametersVersion1
Definition: up_version1.h:15