diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-08 12:52:46 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:39 +0100 |
commit | 13ebd041eae4822d05580081cf7cca54dc4ce677 (patch) | |
tree | ae23677f9fedb0148d040a3830f2035ba4ed47fd /src/can/can-signals.hpp | |
parent | bcfaacaa8dfd1d938785e8ebb67fd9b991702f0e (diff) |
Make dumb poco class from old C struct
Change-Id: I1cae74b33e1351bb84d002e86f93c9329f8389f0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-signals.hpp')
-rw-r--r-- | src/can/can-signals.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/can/can-signals.hpp b/src/can/can-signals.hpp index 99f62c74..e618c19e 100644 --- a/src/can/can-signals.hpp +++ b/src/can/can-signals.hpp @@ -155,10 +155,18 @@ class can_signal_t * is used. */ bool received_; /*!< received_ - True if this signal has ever been received.*/ float lastValue_; /*!< lastValue_ - The last received value of the signal. If 'received' is false, - * this value is undefined. */ + * this value is undefined. */ public: + can_message_definition_t* get_message() + { + return message_; + } + const std::string& get_generic_name() + { + return generic_name_; + } }; void find_can_signals(const openxc_DynamicField &key, std::vector<CanSignal*>& found_signals); |