Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
diag_message_handler.h
1#ifndef DIAG_MESSAGE_HANDLER_H
2#define DIAG_MESSAGE_HANDLER_H
3
4#include <doiplib/message_handler.h>
5#include <doiplib/diag_message.h>
6#include "../helper/read_data_by_identifier.h"
7#include "../../ara/diag/routing/uds_service_router.h"
8
9namespace application
10{
12 namespace doip
13 {
15 class DiagMessageHandler : public DoipLib::MessageHandler
16 {
17 private:
18 DoipLib::DiagMessage mRequest;
21 const uint8_t cProtocolVersion;
22
23 public:
30 std::string resourcesUrl,
31 uint8_t protocolVersion);
32
33 DoipLib::Message *GetMessage() override;
34
35 bool TryHandle(
36 const DoipLib::Message *request,
37 std::vector<uint8_t> &response) const override;
38 };
39 }
40}
41
42#endif
A class to handle UDS messages via DoIP.
Definition: diag_message_handler.h:16
bool TryHandle(const DoipLib::Message *request, std::vector< uint8_t > &response) const override
Definition: diag_message_handler.cpp:23
DiagMessageHandler(helper::CurlWrapper *curl, std::string resourcesUrl, uint8_t protocolVersion)
Constructor.
Definition: diag_message_handler.cpp:8
Minimalist C++ wrapper of easy (blocking interface) CURL library for RESTful communication.
Definition: curl_wrapper.h:13
UDS to read data at the diagnostic server by passing the data ID (DID)
Definition: read_data_by_identifier.h:15
A class to route an UDS request to the proper service for handling.
Definition: uds_service_router.h:14
AUTOSAR application namespace.
Definition: diag_message_handler.cpp:5