COMMS
Template library intended to help with implementation of communication protocols.
comms::option::def::SequenceTerminationFieldSuffix< TField > Struct Template Reference

#include "comms/options.h"

Detailed Description

template<typename TField>
struct comms::option::def::SequenceTerminationFieldSuffix< TField >

Option that forces termination of the sequence when predefined value is encountered.

Sometimes protocols use zero-termination for strings instead of prefixing them with their size. Below is an example of how to achieve such termination using SequenceTerminationFieldSuffix option.

using MyField =
MyFieldBase,
>
>;
Base class to all the field classes.
Definition: Field.h:33
Field that represent integral value.
Definition: IntValue.h:72
Field that represents a string.
Definition: String.h:159
Option that forces termination of the sequence when predefined value is encountered.
Definition: options.h:507
Template Parameters
TFieldType of the field that represents suffix

The documentation for this struct was generated from the following file: