Tanl Linguistic Pipeline |
A conf<int> is a Var for containing the value of an integer configuration variable. More...
#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. |
A conf<int> is a Var for containing the value of an integer configuration variable.
Construct (initialize) a conf<int>.
name | The name of the configuration variable. |
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. |
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. |
Implements IXE::Configuration::Item.