diff options
author | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-29 15:10:39 +0200 |
---|---|---|
committer | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-29 18:10:56 +0200 |
commit | d9c40fd96e31ce41166e2b846301335ed6fe5d37 (patch) | |
tree | d97480eb71cf39a13d7c89a297ff5a3b9aaa5bfb /src/openxc/message_set.hpp | |
parent | 7869e2e2ca1feb6a85919eab7c1da9c698d6d680 (diff) |
Add management of version and new decoder signature.jellyfish_9.99.4jellyfish_9.99.3jellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.2jellyfish/9.99.1icefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.19.99.49.99.39.99.29.99.18.99.58.99.48.99.38.99.28.99.1
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-x | src/openxc/message_set.hpp | 6 |
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;
};
|