Woman, Life, Freedom


DoIP Library
Diagnostics over Internet Protocol (DoIP) C++ library
vehicle_id_request.h
1#ifndef VEHICLE_ID_REQUEST_H
2#define VEHICLE_ID_REQUEST_H
3
4#include "./message.h"
5
6namespace DoipLib
7{
9 class VehicleIdRequest : public Message
10 {
11 private:
12 static const PayloadType cPayloadType{PayloadType::VehicleIdRequest};
13
14 protected:
15 void GetPayload(std::vector<uint8_t> &payload) const override;
16
17 virtual bool TrySetPayload(
18 const std::vector<uint8_t> &payload,
19 uint32_t payloadLength) override;
20
21 public:
22 VehicleIdRequest() noexcept;
23
26 explicit VehicleIdRequest(uint8_t protocolVersion) noexcept;
27 };
28}
29
30#endif
DoIP generic message.
Definition: message.h:12
Vehicle ID request DoIP message.
Definition: vehicle_id_request.h:10
virtual bool TrySetPayload(const std::vector< uint8_t > &payload, uint32_t payloadLength) override
Try to set message payload.
void GetPayload(std::vector< uint8_t > &payload) const override
Get message payload.