Woman, Life, Freedom


DoIP Library
Diagnostics over Internet Protocol (DoIP) C++ library
eid_vehicle_id_request.h
1#ifndef EID_VEHICLE_ID_REQUEST_H
2#define EID_VEHICLE_ID_REQUEST_H
3
4#include <array>
5#include "./message.h"
6
7namespace DoipLib
8{
11 {
12 private:
13 static const PayloadType cPayloadType{
14 PayloadType::VehicleIdRequestWithEid};
15 static constexpr std::size_t cEidSize{6};
16
17 std::array<uint8_t, cEidSize> mEid;
18
19 protected:
20 void GetPayload(std::vector<uint8_t> &payload) const override;
21
22 virtual bool TrySetPayload(
23 const std::vector<uint8_t> &payload,
24 uint32_t payloadLength) override;
25
26 public:
27 EidVehicleIdRequest() noexcept;
28
33 uint8_t protocolVersion, std::array<uint8_t, cEidSize> eid);
34
37 std::array<uint8_t, cEidSize> GetEid() const;
38 };
39}
40
41#endif
Vehicle ID request DoIP message with entity ID filtering.
Definition: eid_vehicle_id_request.h:11
void GetPayload(std::vector< uint8_t > &payload) const override
Get message payload.
virtual bool TrySetPayload(const std::vector< uint8_t > &payload, uint32_t payloadLength) override
Try to set message payload.
std::array< uint8_t, cEidSize > GetEid() const
Get EID filter.
DoIP generic message.
Definition: message.h:12