summaryrefslogtreecommitdiffstats
path: root/src/openxc/message_set.hpp
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-08-29 15:10:39 +0200
committerArthur Guyader <arthur.guyader@iot.bzh>2019-08-29 18:10:56 +0200
commitd9c40fd96e31ce41166e2b846301335ed6fe5d37 (patch)
treed97480eb71cf39a13d7c89a297ff5a3b9aaa5bfb /src/openxc/message_set.hpp
parent7869e2e2ca1feb6a85919eab7c1da9c698d6d680 (diff)
This commit allows to generate a file according to the version. And adds the wrapper function for new decoder between v1 and v2. Bug-AGL : SPEC-2780 Change-Id: I169d5a8213d6a14e5d77b600e14b36f0878b3efe Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Diffstat (limited to 'src/openxc/message_set.hpp')
-rwxr-xr-xsrc/openxc/message_set.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openxc/message_set.hpp b/src/openxc/message_set.hpp
index 935817e..fa919ae 100755
--- a/src/openxc/message_set.hpp
+++ b/src/openxc/message_set.hpp
@@ -17,6 +17,7 @@ namespace openxc
{
private:
std::string name_;
+ std::string version_;
bool bit_numbering_inverted_;
float max_message_frequency_;
can_bus_mode raw_can_mode_;
@@ -35,8 +36,9 @@ namespace openxc
message_set();
message_set(const message_set&) = default;
message_set(message_set&&) = default;
-
+
std::string name() const;
+ std::string version() const;
bool bit_numbering_inverted() const;
float max_message_frequency() const;
can_bus_mode raw_can_mode() const;
@@ -49,7 +51,7 @@ namespace openxc
const std::vector<mapping>& mappings() const;
const std::vector<std::string>& extra_sources() const;
const std::vector<command>& commands() const;
-
+
void from_json(const nlohmann::json& j);
nlohmann::json to_json() const;
};