BALL::Parameters Class Reference
[General Purpose File Formats]

General Parameter class. More...

#include <parameters.h>

Inheritance diagram for BALL::Parameters:
Inheritance graph
[legend]

List of all members.


Public Member Functions

Constructors and destructor
Parameters ()
Default constructor.
Parameters (const String &filename)
Constructor.
Parameters (const Parameters &force_field_parameter)
Copy constructor.
virtual ~Parameters ()
Destructor.
virtual void clear ()
Clear method.
Assignment
const Parameters & operator= (const Parameters &parameters)
Assignment operator.
Accessors
void setFilename (const String &filename)
Sets the filename for the INI file.
const String & getFilename () const
Return the current INI file's name.
INIFile & getParameterFile ()
Return a reference to the INI file.
bool init ()
Read the contents of the INI file and interpret them.
Predicates
virtual bool isValid () const
Validity predicate.
bool operator== (const Parameters &parameters) const
Equality operator.

Protected Attributes

bool valid_
INIFile INI_file_

Detailed Description

General Parameter class.

This class is intended to simplify parameter management for force fields or other stronlgy parameterized methods. It is based on INIFile .


Member Function Documentation

virtual bool BALL::Parameters::isValid ( ) const [virtual]

Validity predicate.

Return true if the parameters were correctly initialized, the internal INI file is valid.

Returns:
bool - valid_ && parameter_file_.isValid()

Reimplemented in BALL::ForceFieldParameters.


Generated on Thu Aug 6 18:30:29 2009 for BALL by doxygen 1.5.8