BALL
1.4.2
|
#include <BALL/FORMAT/parameters.h>
Public Member Functions | |
Constructors and destructor | |
Parameters () | |
Parameters (const String &filename) | |
Parameters (const Parameters &force_field_parameter) | |
virtual | ~Parameters () |
virtual void | clear () |
Assignment | |
const Parameters & | operator= (const Parameters ¶meters) |
Accessors | |
void | setFilename (const String &filename) |
const String & | getFilename () const |
INIFile & | getParameterFile () |
bool | init () |
Predicates | |
virtual bool | isValid () const |
bool | operator== (const Parameters ¶meters) const |
Protected Attributes | |
bool | valid_ |
INIFile | INI_file_ |
General Parameter class. This class is intended to simplify parameter management for force fields or other stronlgy parameterized methods. It is based on INIFile .
Definition at line 24 of file parameters.h.
BALL::Parameters::Parameters | ( | ) |
Default constructor.
BALL::Parameters::Parameters | ( | const String & | filename | ) |
Constructor.
BALL::Parameters::Parameters | ( | const Parameters & | force_field_parameter | ) |
Copy constructor
|
virtual |
Destructor.
|
virtual |
Clear method.
Reimplemented in BALL::ForceFieldParameters.
const String& BALL::Parameters::getFilename | ( | ) | const |
Return the current INI file's name.
INIFile& BALL::Parameters::getParameterFile | ( | ) |
Return a reference to the INI file.
bool BALL::Parameters::init | ( | ) |
Read the contents of the INI file and interpret them.
|
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.
const Parameters& BALL::Parameters::operator= | ( | const Parameters & | parameters | ) |
Assignment operator
bool BALL::Parameters::operator== | ( | const Parameters & | parameters | ) | const |
Equality operator
void BALL::Parameters::setFilename | ( | const String & | filename | ) |
Sets the filename for the INI file.
|
protected |
Definition at line 115 of file parameters.h.
|
protected |
Definition at line 111 of file parameters.h.