![]() |
|
PhoenixFileParser
1.5.1
Set of tools to ease file parsing
|
Generic class for a configuration check. More...
#include <ConfigCheck.h>
Inheritance diagram for ConfigCheckValue< T >:
Collaboration diagram for ConfigCheckValue< T >:Public Member Functions | |
| ConfigCheckValue (const T *data, const T &minValue, bool isMinInclusive, const T &maxValue, bool isMaxInclusive) | |
| Default constructor of the ConfigCheckValue. | |
| virtual bool | isOk (std::ostream &out) const |
| Say if the check is OK or not. | |
| virtual | ~ConfigCheckValue () |
| Destructor of the ConfigCheckValue. | |
Private Attributes | |
| const T * | p_data |
| value to be checked | |
| bool | p_isMaxInclusive |
| true if the maximum boundary is inclusive | |
| bool | p_isMinInclusive |
| true if the minimum boundary is inclusive | |
| T | p_maxValue |
| maximum value boundary | |
| T | p_minValue |
| minimum value boundary | |
Generic class for a configuration check.
Definition at line 15 of file ConfigCheck.h.
| ConfigCheckValue< T >::ConfigCheckValue | ( | const T * | data, |
| const T & | minValue, | ||
| bool | isMinInclusive, | ||
| const T & | maxValue, | ||
| bool | isMaxInclusive ) |
Default constructor of the ConfigCheckValue.
| data | : pointer to the value to be checked |
| minValue | : minimum value boundary |
| isMinInclusive | : true if the minimum boundary is inclusive |
| maxValue | : maximum value boundary |
| isMaxInclusive | : true if the maximum boundary is inclusive |
Definition at line 21 of file ConfigCheck_impl.h.
References p_data, p_isMaxInclusive, p_isMinInclusive, p_maxValue, and p_minValue.
|
virtual |
|
virtual |
Say if the check is OK or not.
| out | : std::ostream to get the error message |
Implements GenericConfigCheck.
Definition at line 34 of file ConfigCheck_impl.h.
References configCheckValue(), p_data, p_isMaxInclusive, p_isMinInclusive, p_maxValue, and p_minValue.
Here is the call graph for this function:
|
private |
value to be checked
Definition at line 24 of file ConfigCheck.h.
Referenced by ConfigCheckValue(), and isOk().
|
private |
true if the maximum boundary is inclusive
Definition at line 32 of file ConfigCheck.h.
Referenced by ConfigCheckValue(), and isOk().
|
private |
true if the minimum boundary is inclusive
Definition at line 28 of file ConfigCheck.h.
Referenced by ConfigCheckValue(), and isOk().
|
private |
maximum value boundary
Definition at line 30 of file ConfigCheck.h.
Referenced by ConfigCheckValue(), and isOk().
|
private |
minimum value boundary
Definition at line 26 of file ConfigCheck.h.
Referenced by ConfigCheckValue(), and isOk().