30template <
typename TFieldBase,
typename TExtraOpts = comms::option::app::EmptyOption>
70 comms::option::def::FieldsImpl<GenericMessageFields<typename TMessage::Field, TFieldOpts> >,
71 comms::option::def::MsgType<GenericMessage<TMessage, TFieldOpts, TExtraOpts> >,
72 comms::option::def::HasDoGetId,
73 comms::option::def::HasName,
136 return "Generic Message";
Contains definition of comms::field::ArrayList.
Provides common base class for the custom messages with default implementation.
Generic Message.
Definition GenericMessage.h:76
GenericMessage(MsgIdParamType id)
Constructor.
Definition GenericMessage.h:100
GenericMessage()=delete
Default constructor is deleted.
GenericMessage(const GenericMessage &)=default
Copy constructor.
typename Base::MsgIdType MsgIdType
Type of the message ID.
Definition GenericMessage.h:89
~GenericMessage() noexcept=default
Destructor.
MsgIdParamType doGetId() const
Get message ID information.
Definition GenericMessage.h:126
typename Base::MsgIdParamType MsgIdParamType
Type of the message ID passed as parameter.
Definition GenericMessage.h:93
GenericMessage(GenericMessage &&)=default
Move constructor.
static const char * doName()
Get message name information.
Definition GenericMessage.h:134
Base class for all the custom protocol messages.
Definition MessageBase.h:83
#define COMMS_MSG_FIELDS_NAMES(...)
Provide names for message fields.
Definition MessageBase.h:1066
typename BaseImpl::MsgIdType MsgIdType
Type used for message ID.
Definition Message.h:196
typename BaseImpl::MsgIdParamType MsgIdParamType
Type used for message ID passed as parameter or returned from function.
Definition Message.h:203
Field that represents a sequential collection of fields.
Definition ArrayList.h:192
Main namespace for all classes / functions of COMMS library.
std::tuple< comms::field::ArrayList< TFieldBase, std::uint8_t, TExtraOpts > > GenericMessageFields
Definition of fields for comms::GenericMessage message.
Definition GenericMessage.h:38
Contains definition of all the options used by the COMMS library.
No-op option, doesn't have any effect.
Definition options.h:1250
Option used to specify fields of the message and force implementation of default read,...
Definition options.h:234
Option that notifies comms::MessageBase about existence of doGetId() member function in derived class...
Definition options.h:250
Mark message class as providing its name information.
Definition options.h:1141
Option used to specify actual type of the message.
Definition options.h:202