7#ifndef __CONFIG_CHECK_IMPL_H__
8#define __CONFIG_CHECK_IMPL_H__
39 std::vector<std::string> vecMinBoundary{
"]",
"["}, vecMaxBoundary{
"[",
"]"};
virtual bool isOk(std::ostream &out) const
Say if the check is OK or not.
bool p_isMinInclusive
true if the minimum boundary is inclusive
ConfigCheckValue(const T *data, const T &minValue, bool isMinInclusive, const T &maxValue, bool isMaxInclusive)
Default constructor of the ConfigCheckValue.
virtual ~ConfigCheckValue()
Destructor of the ConfigCheckValue.
const T * p_data
value to be checked
T p_maxValue
maximum value boundary
T p_minValue
minimum value boundary
bool p_isMaxInclusive
true if the maximum boundary is inclusive
bool configCheckValue(T value, T minValue, bool isMinInclusive, T maxValue, bool isMaxInclusive)
Check if the given value is in the given boundaries.