Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
someip_rpc_message.h
1#ifndef SOMEIP_RPC_MESSAGE_H
2#define SOMEIP_RPC_MESSAGE_H
3
4#include "../someip_message.h"
5
6namespace ara
7{
8 namespace com
9 {
10 namespace someip
11 {
12 namespace rpc
13 {
16 {
17 private:
18 std::vector<uint8_t> mRpcPayload;
19
21
22 public:
30 SomeIpRpcMessage(uint32_t messageId,
31 uint16_t clientId,
32 uint16_t sessionId,
33 uint8_t protocolVersion,
34 uint8_t interfaceVersion,
35 const std::vector<uint8_t> &rpcPayload);
36
44 SomeIpRpcMessage(uint32_t messageId,
45 uint16_t clientId,
46 uint16_t sessionId,
47 uint8_t protocolVersion,
48 uint8_t interfaceVersion,
49 std::vector<uint8_t> &&rpcPayload);
50
59 SomeIpRpcMessage(uint32_t messageId,
60 uint16_t clientId,
61 uint16_t sessionId,
62 uint8_t protocolVersion,
63 uint8_t interfaceVersion,
64 SomeIpReturnCode returnCode,
65 const std::vector<uint8_t> &rpcPayload);
66
67 virtual uint32_t Length() const noexcept override;
68
69 virtual std::vector<uint8_t> Payload() const override;
70
73 const std::vector<uint8_t> &RpcPayload() const;
74
79 static SomeIpRpcMessage Deserialize(const std::vector<uint8_t> &payload);
80 };
81 }
82 }
83 }
84}
85
86#endif
SOME/IP Abstract Message.
Definition: someip_message.h:54
SOME/IP remote procedure call message.
Definition: someip_rpc_message.h:16
virtual uint32_t Length() const noexcept override
Get message length.
Definition: someip_rpc_message.cpp:67
virtual std::vector< uint8_t > Payload() const override
Get message payload.
Definition: someip_rpc_message.cpp:76
static SomeIpRpcMessage Deserialize(const std::vector< uint8_t > &payload)
Deserialize a SOME/IP RPC message payload.
Definition: someip_rpc_message.cpp:91
const std::vector< uint8_t > & RpcPayload() const
Get the serialized RPC object.
Definition: someip_rpc_message.cpp:86