diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-26 16:07:15 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-26 16:07:15 +0100 |
commit | 0d65a0be7d834b23de99e73bba5407185f54aeca (patch) | |
tree | d97480eb71cf39a13d7c89a297ff5a3b9aaa5bfb /src/openxc/message_set.hpp | |
parent | 839bbf458685383634c03e8cec2238f70c6f0382 (diff) |
Add management of version and new decoder signature.halibut_8.0.6halibut_8.0.5halibut_8.0.4halibut/8.0.6halibut/8.0.5halibut/8.0.48.0.68.0.58.0.4halibut
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
Bug-AGL: SPEC-2976
Change-Id: I169d5a8213d6a14e5d77b600e14b36f0878b3efe
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@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;
};
|