diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-10 10:11:44 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:40 +0100 |
commit | a0b229d33eb8bf076bc40f9a31dbd3a689a335e1 (patch) | |
tree | b48a78476b7cad5c14955a85135224b53347ff5a /src/diagnostic/active-diagnostic-request.hpp | |
parent | 19c0faf5dcb5c7e58136f6ba56c65535baac2efb (diff) |
Finalize the class active_diag... to get it compile.
Fix subsequents bugs into the other depending class
diagnostic manager
Change-Id: I8920c489fc15a61a36ff29d58aab59c2e6388f85
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/diagnostic/active-diagnostic-request.hpp')
-rw-r--r-- | src/diagnostic/active-diagnostic-request.hpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/diagnostic/active-diagnostic-request.hpp b/src/diagnostic/active-diagnostic-request.hpp index 1e996c03..52f4d482 100644 --- a/src/diagnostic/active-diagnostic-request.hpp +++ b/src/diagnostic/active-diagnostic-request.hpp @@ -23,7 +23,6 @@ #include "uds/uds_types.h" #include "../can/can-bus-dev.hpp" #include "../can/can-message.hpp" -#include "diagnostic-manager.hpp" #include "../low-can-binding.hpp" @@ -79,25 +78,25 @@ private: frequency_clock_t timeout_clock_; /*!< timeout_clock_ - A frequency_clock_t object to monitor how long it's been since * this request was sent.*/ public: - bool& operator==(const active_diagnostic_request_t& adr) const; + bool operator==(const active_diagnostic_request_t& b); active_diagnostic_request_t& operator=(const active_diagnostic_request_t& adr); active_diagnostic_request_t(); active_diagnostic_request_t(active_diagnostic_request_t&&) = default; active_diagnostic_request_t(const active_diagnostic_request_t&) = default; active_diagnostic_request_t(can_bus_dev_t* bus, DiagnosticRequest* request, - const std::string& name, bool waitForMultipleResponses, + const std::string& name, bool wait_for_multiple_responses, const DiagnosticResponseDecoder decoder, const DiagnosticResponseCallback callback, float frequencyHz); can_bus_dev_t* get_can_bus_dev(); - DiagnosticRequestHandle& get_handle(); + DiagnosticRequestHandle* get_handle(); bool get_recurring() const; bool get_in_flight() const; - + void set_handle(DiagnosticShims& shims, DiagnosticRequest* request); void set_in_flight(bool val); - bool timed_out() const; + bool timed_out(); bool response_received() const; - bool request_completed() const; + bool request_completed(); }; |