COVISE Core
|
#include <CoviseConfig.h>
Classes | |
class | RefPtr |
class | ScopeEntries |
Static Public Member Functions | |
static std::string | getEntry (const std::string &entry, bool *exists=0) |
Get a config entry. The entry takes the form "{sectionname.}*entry, whereby sectionname is
section[:name]. This method returns the "value"-field of the config entry only. More... | |
static std::string | getEntry (const std::string &variable, const std::string &entry, bool *exists=0) |
Get a config entry. The entry takes the form "{sectionname.}*entry, whereby sectionname is
section[:name]. This method returns the field given by "variable" of the config entry. More... | |
static std::string | getEntry (const std::string &variable, const std::string &entry, const std::string &defaultValue, bool *exists=0) |
Get a config entry. The entry takes the form "{sectionname.}*entry, whereby sectionname is
section[:name]. This method returns the field given by "variable" of the config entry. More... | |
static int | getInt (const std::string &entry, int defaultValue, bool *exists=0) |
Get an integer value. More... | |
static int | getInt (const std::string &variable, const std::string &entry, int defaultValue, bool *exists=0) |
Get an integer value. More... | |
static long | getLong (const std::string &entry, long defaultValue, bool *exists=0) |
Get a long integer value. More... | |
static long | getLong (const std::string &variable, const std::string &entry, long defaultValue, bool *exists=0) |
Get a long integer value. More... | |
static bool | isOn (const std::string &entry, bool defaultValue, bool *exists=0) |
Checks if an option is on or off. As on counts "on", "true", and "1". More... | |
static bool | isOn (const std::string &variable, const std::string &entry, bool defaultValue, bool *exists=0) |
Checks if an option is on or off. As on counts "on", "true", and "1". More... | |
static float | getFloat (const std::string &entry, float defaultValue, bool *exists=0) |
Get a float value. More... | |
static float | getFloat (const std::string &variable, const std::string &entry, float defaultValue, bool *exists=0) |
Get a float value. More... | |
static std::vector< std::string > | getScopeNames (const std::string &scope, const std::string &name="") |
static ScopeEntries | getScopeEntries (const std::string &scope) |
static ScopeEntries | getScopeEntries (const std::string &scope, const std::string &name) |
Private Member Functions | |
coCoviseConfig () | |
virtual | ~coCoviseConfig () |
|
private |
|
privatevirtual |
|
static |
Get a config entry. The entry takes the form "{sectionname.}*entry, whereby sectionname is section[:name]. This method returns the "value"-field of the config entry only.
entry | The section to get the value from. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get a config entry. The entry takes the form "{sectionname.}*entry, whereby sectionname is section[:name]. This method returns the field given by "variable" of the config entry.
variable | The variable requested. |
entry | The section to get the value from. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get a config entry. The entry takes the form "{sectionname.}*entry, whereby sectionname is section[:name]. This method returns the field given by "variable" of the config entry.
variable | The variable requested. |
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get a float value.
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get a float value.
variable | The variable requested. |
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get an integer value.
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get an integer value.
variable | The variable requested. |
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get a long integer value.
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Get a long integer value.
variable | The variable requested. |
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
|
static |
|
static |
|
static |
Checks if an option is on or off. As on counts "on", "true", and "1".
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |
|
static |
Checks if an option is on or off. As on counts "on", "true", and "1".
variable | The variable requested. |
entry | The section to get the value from. |
defaultValue | The default return value if nothing is found. |
exists | provide a pointer to a bool here to get feedback, if the value exists. |