cfgfile 0.2.11
|
Constraint that allowed values to be in the given list of values. More...
#include <constraint_one_of.hpp>
Public Member Functions | |
constraint_one_of_t () | |
Construct constraint. | |
~constraint_one_of_t () | |
void | add_value (const T &value) |
Add value to the list of values of the constraint. | |
void | remove_value (const T &value) |
Add value to the list of values of the constraint. | |
bool | check (const T &value) const override |
Check value for correctness. | |
Public Member Functions inherited from cfgfile::constraint_t< T > | |
constraint_t () | |
Construct constraint. | |
virtual | ~constraint_t () |
Constraint that allowed values to be in the given list of values.
|
inline |
Construct constraint.
|
inline |
Add value to the list of values of the constraint.
|
inlineoverridevirtual |
Check value for correctness.
true | If all is OK. |
false | If value doen't correspond to the constraint. |
Implements cfgfile::constraint_t< T >.
Add value to the list of values of the constraint.