Woman, Life, Freedom


DoIP Library
Diagnostics over Internet Protocol (DoIP) C++ library
power_mode_request.h
1#ifndef POWER_MODE_REQUEST_H
2#define POWER_MODE_REQUEST_H
3
4#include "./message.h"
5
6namespace DoipLib
7{
9 class PowerModeRequest : public Message
10 {
11 private:
12 static const PayloadType cPayloadType{
13 PayloadType::DiagPowerModeInfoRequest};
14
15 protected:
16 void GetPayload(std::vector<uint8_t> &payload) const override;
17
18 virtual bool TrySetPayload(
19 const std::vector<uint8_t> &payload,
20 uint32_t payloadLength) override;
21
22 public:
23 PowerModeRequest() noexcept;
24
27 explicit PowerModeRequest(uint8_t protocolVersion) noexcept;
28 };
29}
30
31#endif
DoIP generic message.
Definition: message.h:12
Diagnostic node power mode information request.
Definition: power_mode_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.