SOME/IP service discovery message. More...
#include <someip_sd_message.h>
Public Member Functions | |
SomeIpSdMessage (SomeIpSdMessage &&other) | |
SomeIpSdMessage & | operator= (SomeIpSdMessage &&other) |
const std::vector< std::unique_ptr< entry::Entry > > & | Entries () const noexcept |
Get entries. More... | |
void | AddEntry (std::unique_ptr< entry::Entry > entry) |
Add an entry. More... | |
virtual uint32_t | Length () const noexcept override |
Get message length. More... | |
virtual void | SetSessionId (uint16_t sessionId) override |
Set a new session ID. More... | |
virtual bool | IncrementSessionId () noexcept override |
Increment the session ID by one. More... | |
virtual std::vector< uint8_t > | Payload () const override |
Get message payload. More... | |
Public Member Functions inherited from ara::com::someip::SomeIpMessage | |
SomeIpMessage (SomeIpMessage &&other) noexcept | |
SomeIpMessage & | operator= (SomeIpMessage &&other) |
uint32_t | MessageId () const noexcept |
Get message ID. More... | |
uint16_t | ClientId () const noexcept |
Get client ID. More... | |
uint16_t | SessionId () const noexcept |
Get session ID. 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... | |
Static Public Member Functions | |
static SomeIpSdMessage | Deserialize (const std::vector< uint8_t > &payload) |
Deserialize a SOME/IP SD message payload. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ara::com::someip::SomeIpMessage | |
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 inherited from ara::com::someip::SomeIpMessage | |
static void | Deserialize (SomeIpMessage *message, const std::vector< uint8_t > &payload) |
Deserialize a SOME/IP message payload. More... | |
SOME/IP service discovery message.
void ara::com::someip::sd::SomeIpSdMessage::AddEntry | ( | std::unique_ptr< entry::Entry > | entry | ) |
Add an entry.
entry | Entry to be added |
|
static |
Deserialize a SOME/IP SD message payload.
payload | Serialized SOME/IP message payload byte array |
std::out_of_range | Throws when the payload is corrupted |
|
noexcept |
Get entries.
|
overridevirtualnoexcept |
Increment the session ID by one.
Reimplemented from ara::com::someip::SomeIpMessage.
|
overridevirtualnoexcept |
Get message length.
Implements ara::com::someip::SomeIpMessage.
|
overridevirtual |
|
overridevirtual |
Set a new session ID.
sessionId | New session ID |
Reimplemented from ara::com::someip::SomeIpMessage.