SOME/IP Abstract Message. More...
#include <someip_message.h>
Public Member Functions | |
SomeIpMessage (SomeIpMessage &&other) noexcept | |
SomeIpMessage & | operator= (SomeIpMessage &&other) |
uint32_t | MessageId () const noexcept |
Get message ID. More... | |
virtual uint32_t | Length () const noexcept=0 |
Get message length. More... | |
uint16_t | ClientId () const noexcept |
Get client ID. More... | |
uint16_t | SessionId () const noexcept |
Get session ID. More... | |
virtual void | SetSessionId (uint16_t sessionId) |
Set a new session ID. More... | |
virtual bool | IncrementSessionId () noexcept |
Increment the session ID by one. More... | |
uint8_t | ProtocolVersion () const noexcept |
Get protocol version. More... | |
uint8_t | InterfaceVersion () const noexcept |
Get interface version. More... | |
SomeIpMessageType | MessageType () const noexcept |
Get message type. More... | |
SomeIpReturnCode | ReturnCode () const noexcept |
Get return code. More... | |
virtual std::vector< uint8_t > | Payload () const |
Get message payload. More... | |
Protected Member Functions | |
SomeIpMessage (uint32_t messageId, uint16_t clientId, uint8_t protocolVersion, uint8_t interfaceVersion, SomeIpMessageType messageType, uint16_t sessionId=1) | |
Constructor for request and notification. More... | |
SomeIpMessage (uint32_t messageId, uint16_t clientId, uint8_t protocolVersion, uint8_t interfaceVersion, SomeIpMessageType messageType, SomeIpReturnCode returnCode, uint16_t sessionId=1) | |
Constructor for response and error. More... | |
Static Protected Member Functions | |
static void | Deserialize (SomeIpMessage *message, const std::vector< uint8_t > &payload) |
Deserialize a SOME/IP message payload. More... | |
SOME/IP Abstract Message.
|
protected |
Constructor for request and notification.
messageId | Message ID consisting service and method/event ID |
clientId | Client ID including ID prefix |
protocolVersion | SOME/IP protocol header version |
interfaceVersion | Service interface version |
messageType | SOME/IP message type (request or notification) |
sessionId | Active/non-active session ID |
|
protected |
Constructor for response and error.
messageId | Message ID consisting service and method/event ID |
clientId | Client ID including ID prefix |
protocolVersion | SOME/IP protocol header version |
interfaceVersion | Service interface version |
messageType | SOME/IP message type (response or error) |
returnCode | Message response/error return code |
sessionId | Active/non-active session ID |
|
noexcept |
Get client ID.
|
staticprotected |
Deserialize a SOME/IP message payload.
message | SOME/IP message to be filled by deserializing the payload |
payload | Serialized SOME/IP message payload byte array |
|
virtualnoexcept |
Increment the session ID by one.
Reimplemented in ara::com::someip::sd::SomeIpSdMessage.
|
noexcept |
Get interface version.
|
pure virtualnoexcept |
Get message length.
Implemented in ara::com::someip::rpc::SomeIpRpcMessage, and ara::com::someip::sd::SomeIpSdMessage.
|
noexcept |
Get message ID.
|
noexcept |
Get message type.
|
virtual |
Get message payload.
Reimplemented in ara::com::someip::rpc::SomeIpRpcMessage, and ara::com::someip::sd::SomeIpSdMessage.
|
noexcept |
Get protocol version.
|
noexcept |
Get return code.
|
noexcept |
Get session ID.
|
virtual |
Set a new session ID.
sessionId | New session ID |
Reimplemented in ara::com::someip::sd::SomeIpSdMessage.