CppSerdes  1.0
A serialization/deserialization library designed with embedded systems in mind
serdes::validator< FieldType, FuncType > Struct Template Reference

a field and its attached functional validation callable object, note that validation will occur after deserialization and before serialization More...

#include <serdes_validator.h>

Public Member Functions

template<typename FieldTypeT , typename FuncTypeT >
 validator (FieldTypeT &&field_arg, FuncTypeT &&validation_arg)
 Construct a new validator object using perfect forwarding. More...
 

Public Attributes

FieldType field
 
FuncType validation
 

Detailed Description

template<typename FieldType, typename FuncType>
struct serdes::validator< FieldType, FuncType >

a field and its attached functional validation callable object, note that validation will occur after deserialization and before serialization

Template Parameters
FieldType: the field type to validate
FuncType: the callable object validation routine type

Constructor & Destructor Documentation

◆ validator()

template<typename FieldType , typename FuncType >
template<typename FieldTypeT , typename FuncTypeT >
serdes::validator< FieldType, FuncType >::validator ( FieldTypeT &&  field_arg,
FuncTypeT &&  validation_arg 
)
inline

Construct a new validator object using perfect forwarding.

Parameters
field_arg: the field to validate
validation_arg: the callable object validation routine

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