Communication message abstract entry. More...
#include <entry.h>
Public Member Functions | |
Entry (Entry &&other) | |
Entry & | operator= (Entry &&other) |
EntryType | Type () const noexcept |
Get entry type. More... | |
uint16_t | ServiceId () const noexcept |
Get service ID. More... | |
uint16_t | InstanceId () const noexcept |
Get instance ID. More... | |
uint8_t | MajorVersion () const noexcept |
Get major version. More... | |
uint32_t | TTL () const noexcept |
Get TTL. More... | |
const std::vector< std::unique_ptr< option::Option > > & | FirstOptions () const noexcept |
Get first (general) options. More... | |
void | AddFirstOption (std::unique_ptr< option::Option > firstOption) |
Add a first (general) option. More... | |
const std::vector< std::unique_ptr< option::Option > > & | SecondOptions () const noexcept |
Get second (specific) options. More... | |
void | AddSecondOption (std::unique_ptr< option::Option > secondOption) |
Add a second (specific) option. More... | |
virtual std::vector< uint8_t > | Payload (uint8_t &optionIndex) const =0 |
Get entity payload. More... | |
Protected Member Functions | |
Entry (EntryType type, uint16_t serviceId, uint16_t instanceId, uint32_t ttl, uint8_t majorVersion=cAnyMajorVersion) noexcept | |
Constructor. More... | |
virtual bool | ValidateOption (const option::Option *option) const noexcept |
Validate an option for adding. More... | |
bool | ContainsOption (option::OptionType optionType) const noexcept |
Indicate whether the entry contains a specific option type or not. More... | |
virtual std::vector< uint8_t > | BasePayload (uint8_t &optionIndex) const |
Get baseentity payload. More... | |
Communication message abstract entry.
|
protectednoexcept |
void ara::com::entry::Entry::AddFirstOption | ( | std::unique_ptr< option::Option > | firstOption | ) |
Add a first (general) option.
firstOption | First option to be added |
void ara::com::entry::Entry::AddSecondOption | ( | std::unique_ptr< option::Option > | secondOption | ) |
Add a second (specific) option.
secondOption | Second option to be added |
|
protectedvirtual |
Get baseentity payload.
optionIndex | Index of the last added option |
|
protectednoexcept |
Indicate whether the entry contains a specific option type or not.
optionType | Option type of interest |
|
noexcept |
Get first (general) options.
|
noexcept |
Get instance ID.
|
noexcept |
Get major version.
|
pure virtual |
Get entity payload.
optionIndex | Index of the last added option |
Implemented in ara::com::entry::EventgroupEntry, and ara::com::entry::ServiceEntry.
|
noexcept |
Get second (specific) options.
|
noexcept |
Get service ID.
|
noexcept |
Get TTL.
|
protectedvirtualnoexcept |
Validate an option for adding.
option | Option of interest |
Reimplemented in ara::com::entry::EventgroupEntry, and ara::com::entry::ServiceEntry.