Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

RDFSection Class Reference
[Radial Distribution Functions]

Helper class for RDFParameter. More...

#include <RDFSection.h>

Inheritance diagram for RDFSection:

ParameterSection List of all members.

Public Types

Enums
enum  Type { UNKNOWN_TYPE = 0, PIECEWISE_POLYNOMIAL = 1 }

Public Member Functions

Constructors and destructors
 RDFSection () throw ()
 Default constructor.
 RDFSection (const RDFSection &rdf_section) throw ()
 Copy constructor.
virtual ~RDFSection () throw ()
 Destructor.
Assignment
const RDFSectionoperator= (const RDFSection &rdf_section) throw ()
virtual void clear () throw ()
 Clear method.
Parameter extraction
virtual bool extractSection (Parameters &parameters, const String &section_name) throw ()
 Reads a parameter section from an INI file.
Accessors
const RadialDistributionFunctiongetRDF () const throw ()
 return the RDF created by extractSection()
Predicates
bool operator== (const RDFSection &section) const throw ()
 Equality operator.

Protected Attributes

RadialDistributionFunction rdf_

Detailed Description

Helper class for RDFParameter.


Member Function Documentation

virtual bool RDFSection::extractSection Parameters parameters,
const String section_name
throw () [virtual]
 

Reads a parameter section from an INI file.

This method reads the section given in section_name from ini_file, interprets (if given) a format line, reads the data from this section according to the format, and builds some datastructures for fast and easy acces to the data.

Parameters:
parameters the parameters defining the inifile to be read from
section_name the name of the section to be read (without the squared brackets)
Returns:
bool - true if the section could be read, false otherwise

Reimplemented from ParameterSection.