tfel
Loading...
Searching...
No Matches
tfel::utilities::DataMapValidator Struct Reference

an helper structure used to validate a data map. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Utilities/Data.hxx>

Public Types

using DataValidator = std::function<void(const Data&)>
 function used to validate a

Public Member Functions

 DataMapValidator ()
 constructor
 DataMapValidator (DataMapValidator &&) noexcept
 move constructor
 DataMapValidator (const DataMapValidator &)
 move constructor
DataMapValidator & operator= (DataMapValidator &&) noexcept
 move assignement
DataMapValidator & operator= (const DataMapValidator &)
 standard assignement
DataMapValidator & addDataValidator (const std::string &, const DataValidator &)
template<typename... Type>
requires ( (sizeof...(Type) > 0) && (... && (tfel::meta::TLCountNbrOfT<std::decay_t<Type>, DataTypes>::value == 1)))
DataMapValidator & addDataTypeValidator (const std::string &k)
void addStrictlyPositiveIntegerCheck (const std::string &)
 check that the data associated with the given key is a strictly positive integer
void validate (const DataMap &) const
 validate a data-map
 ~DataMapValidator ()
 destructor

Detailed Description

an helper structure used to validate a data map.

Member Function Documentation

◆ addStrictlyPositiveIntegerCheck()

void tfel::utilities::DataMapValidator::addStrictlyPositiveIntegerCheck ( const std::string & )

check that the data associated with the given key is a strictly positive integer

Parameters
[in]kkey

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