DeSR Dependency Parser |
#include <conf_int.h>
Public Member Functions | |
conf (char const *name, int default_value, int min=0, int max=INT_MAX) | |
Construct (initialize) a conf<int>. | |
conf< int > & | operator= (int new_value) |
Assign a new value to the configuration variable, but only if its value is within the legal range; otherwise complain. | |
conf< int > & | operator= (char const *s) |
conf< int > & | operator++ () |
conf< int > | operator++ (int) |
conf< int > & | operator-- () |
conf< int > | operator-- (int) |
Protected Member Functions | |
virtual void | parseValue (char const *&line) |
Parse an integer value from a configuration file line. |
Definition at line 48 of file conf_int.h.
IXE::conf< int >::conf | ( | char const * | name, | |
int | default_value, | |||
int | min = 0 , |
|||
int | max = INT_MAX | |||
) |
Construct (initialize) a conf<int>.
name | name of the configuration parameter. | |
default_value | default value. | |
min | minimum, value, default = 0. | |
max | maximum valu, default = INT_MAX. | |
name | The name of the configuration variable. |
Definition at line 49 of file conf_int.cpp.
conf< int > & IXE::conf< int >::operator= | ( | int | new_value | ) |
Assign a new value to the configuration variable, but only if its value is within the legal range; otherwise complain.
new_value | The potential new value. |
Definition at line 62 of file conf_int.cpp.
void IXE::conf< int >::parseValue | ( | char const *& | lines | ) | [protected, virtual] |
Parse an integer value from a configuration file line.
If successful, assign the value to ourselves; otherwise complain. The string "infinity" (regardless of case) is accepted as a legal value.
line | The line to be parsed. |
Definition at line 91 of file conf_int.cpp.
References IXE::next_token_line().