COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/options.h"
Option that forces field's read operation to fail if invalid value is received.
Sometimes protocol is very strict about what field's values are allowed and forces to abandon a message if invalid value is received. If comms::option::def::FailOnInvalid is provided as an option to a field, the validity is going to checked automatically after the read. If invalid value is identified, error will be returned from the read() operation.
TStatus | Error status to return when the content of the read field is invalid. |