#include <parameters.h>

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 ¶meters) |
| 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 ¶meters) const |
| Equality operator. |
|
Protected Attributes |
|
| bool | valid_ |
| INIFile | INI_file_ |
This class is intended to simplify parameter management for force fields or other stronlgy parameterized methods. It is based on INIFile .
| virtual bool BALL::Parameters::isValid | ( | ) | const [virtual] |
Validity predicate.
Return true if the parameters were correctly initialized, the internal INI file is valid.
valid_ &&
parameter_file_.isValid()Reimplemented in BALL::ForceFieldParameters.
1.5.8