#include <prefs.h>
Public Member Functions | |
Structors | |
TGlobalSettings () | |
Initialize all settings to compile-time default values. | |
TGlobalSettings (const TGlobalSettings &) | |
Copy constructor. | |
~TGlobalSettings () throw () | |
Trivial destructor. | |
Main operations | |
void | Reset () |
Resets settings to default values See namespace SPARK::DefaultSettings. | |
void | Load (SPARK::TPrefList *prefList) |
Performs shallow copy of prefList into member datum PrefList and loads hard-coded settings. | |
Access methods for hard-coded global settings | |
double | GetTolerance () const |
Returns the value of the relative tolerance specified with the key Tolerance in the GlobalSettings section of the *.prf file. | |
void | SetTolerance (double scalar) |
Sets relative tolerance to scalar . | |
double | GetMaxTolerance () const |
Returns the value of the max relative tolerance specified with the key MaxTolerance in the GlobalSettings section of the *.prf file. | |
void | SetMaxTolerance (double scalar) |
Sets the max relative tolerance to scalar . | |
double | GetPredictionSafetyFactor () const |
Returns the prediction safety factor (used in convergence test) as double . | |
void | SetPredictionSafetyFactor (double factor) |
Sets the prediction safety factor to factor . | |
double | GetIterationSafetyFactor () const |
Returns the iteration safety factor (used in convergence test) as double . | |
void | SetIterationSafetyFactor (double factor) |
Sets the iteration safety factor to factor . | |
double | GetBreakUnknownSafetyFactor () const |
Returns the safety factor for a break unknown (used in convergence test) as double . | |
void | SetBreakUnknownSafetyFactor (double factor) |
Sets the safety factor for a break unknown to factor . | |
double | GetNormalUnknownSafetyFactor () const |
Returns the safety factor for a normal unknown (used in convergence test) as double . | |
void | SetNormalUnknownSafetyFactor (double factor) |
Sets the safety factor for a normal unknown to factor . | |
Access methods for customized global settings | |
| |
const char * | GetString (const std::string &key, const std::string &defaultString) const |
Returns as const char* the entry for the key in the GlobalSettings section of the *.prf file. | |
double | GetScalar (const std::string &key, double defaultScalar) const |
Returns as double the entry for the key in the GlobalSettings section of the *.prf file. | |
unsigned | GetCount (const std::string &key, unsigned defaultCount) const |
Returns as unsigned the entry for the key in the GlobalSettings section of the *.prf file. | |
I/O Operations | |
void | Write (std::ostream &os, const std::string &before) const |
Behavior:
GlobalSettings
See namespace SPARK::DefaultGlobalSettings for a list of the default hard-coded values.
|
Initialize all settings to compile-time default values.
|
|
Copy constructor.
|
|
Trivial destructor.
|
|
Resets settings to default values See namespace SPARK::DefaultSettings.
|
|
Performs shallow copy of prefList into member datum PrefList and loads hard-coded settings.
|
|
Returns the value of the relative tolerance specified with the key Tolerance in the GlobalSettings section of the *.prf file.
|
|
Sets relative tolerance to
|
|
Returns the value of the max relative tolerance specified with the key MaxTolerance in the GlobalSettings section of the *.prf file.
|
|
Sets the max relative tolerance to
|
|
Returns the prediction safety factor (used in convergence test) as
|
|
Sets the prediction safety factor to
|
|
Returns the iteration safety factor (used in convergence test) as
|
|
Sets the iteration safety factor to
|
|
Returns the safety factor for a break unknown (used in convergence test) as
|
|
Sets the safety factor for a break unknown to
|
|
Returns the safety factor for a normal unknown (used in convergence test) as
|
|
Sets the safety factor for a normal unknown to
|
|
Returns as const char* the entry for the key in the GlobalSettings section of the *.prf file.
|
|
Returns as double the entry for the key in the GlobalSettings section of the *.prf file.
|
|
Returns as unsigned the entry for the key in the GlobalSettings section of the *.prf file.
|
|
Writes the list of global settings to os
|