DeSR Dependency Parser

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

Inheritance graph
Collaboration diagram for IXE::conf< int >:

Collaboration graph

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.

Definition at line 48 of file conf_int.h.


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


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.

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.

Parameters:
line The line to be parsed.

Definition at line 91 of file conf_int.cpp.

References IXE::next_token_line().


The documentation for this class was generated from the following files:
 
Copyright © 2005-2007 G. Attardi. Generated on 13 Aug 2009 by doxygen 1.5.7.1.