Woman, Life, Freedom


DoIP Library
Diagnostics over Internet Protocol (DoIP) C++ library
vin_vehicle_id_request.h
1#ifndef VIN_VEHICLE_ID_REQUEST_H
2#define VIN_VEHICLE_ID_REQUEST_H
3
4#include <string>
5#include "./message.h"
6
7namespace DoipLib
8{
11 {
12 private:
13 static const PayloadType cPayloadType{
14 PayloadType::VehicleIdRequestWithVin};
15 static const std::size_t cVinSize{17};
16
17 std::string mVin;
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 VinVehicleIdRequest() noexcept;
28
33 VinVehicleIdRequest(uint8_t protocolVersion, const std::string &vin);
34
39 VinVehicleIdRequest(uint8_t protocolVersion, std::string &&vin);
40
43 std::string GetVin() const;
44 };
45}
46
47#endif
DoIP generic message.
Definition: message.h:12
Vehicle ID request DoIP message with vehicle ID number filtering.
Definition: vin_vehicle_id_request.h:11
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.
std::string GetVin() const
Get VIN filter.