DeSR Dependency Parser

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

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

#include <conf_float.h>

Inheritance diagram for IXE::conf< float >:

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

Collaboration graph

List of all members.

Public Member Functions

 conf (char const *name, float default_value=0.0)
 Construct (initialize) a conf<float>.
conf< float > & operator= (float new_value)
 Assign a new value to the configuration variable.
conf< float > & operator= (char const *s)

Protected Member Functions

virtual void parseValue (char const *&line)
 Parse an float value from a configuration file line.


Detailed Description

template<>
class IXE::conf< float >

A conf<float> is a Var for containing the value of a float configuration variable.

Definition at line 47 of file conf_float.h.


Constructor & Destructor Documentation

IXE::conf< float >::conf ( char const *  name,
float  default_value = 0.0 
)

Construct (initialize) a conf<float>.

Parameters:
name The name of the configuration variable.

Definition at line 49 of file conf_float.cpp.


Member Function Documentation

conf< float > & IXE::conf< float >::operator= ( float  new_value  ) 

Assign a new value to the configuration variable.

Parameters:
new_value The potential new value.

Definition at line 61 of file conf_float.cpp.

void IXE::conf< float >::parseValue ( char const *&  lines  )  [protected, virtual]

Parse an float value from a configuration file line.

If successful, assign the value to ourselves; otherwise complain.

Parameters:
line The line to be parsed.

Definition at line 79 of file conf_float.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.