Wrong error handling when fire diagnostic request.
[apps/low-level-can-service.git] / src / diagnostic / diagnostic-message.hpp
index 4feceb4..b25fea3 100644 (file)
 #pragma once
 
 #include <vector>
+#include <string>
 
 #include "uds/uds.h"
-#include "../can/can-bus.hpp"
 #include "../can/can-message.hpp"
 #include "active-diagnostic-request.hpp"
 
-#include "../low-can-binding.hpp"
-
 enum UNIT {
        POURCENT,
        DEGREES_CELSIUS,
@@ -56,7 +54,7 @@ class diagnostic_message_t {
                                                                                         * instead of a parsed value.*/
                DiagnosticResponseCallback callback_; /*!< callback_ - An optional DiagnosticResponseCallback to be notified whenever a
                                                                                           * response is received for this request.*/
-               
+
                bool supported_; /*!< supported_ - boolean indicating whether this pid is supported by the vehicle or not.*/
 
        public:
@@ -70,6 +68,9 @@ class diagnostic_message_t {
                float get_frequency() const;
                DiagnosticResponseDecoder get_decoder() const;
                DiagnosticResponseCallback get_callback() const;
+               bool get_supported() const;
+
+               void set_supported(bool value);
 
                const DiagnosticRequest build_diagnostic_request();