Tanl Linguistic Pipeline

IXE::conf< int > Class Template Reference
[Configuration]

A conf<int> is a Var for containing the value of an integer configuration variable. More...

#include <conf_int.h>

Inheritance diagram for IXE::conf< int >:
IXE::VarDefault< int > IXE::Var< int > IXE::Configuration::Item

List of all members.

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.

Detailed Description

template<>
class IXE::conf< int >

A conf<int> is a Var for containing the value of an integer configuration variable.


Constructor & Destructor Documentation

IXE::conf< int >::conf ( char const *  name,
int  default_value,
int  min = 0,
int  max = INT_MAX 
)

Construct (initialize) a conf<int>.

Parameters:
name The name of the configuration variable.

Member Function Documentation

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.

Parameters:
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.

Parameters:
line The line to be parsed.

Implements IXE::Configuration::Item.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.