#include <yatengine.h>
Inheritance diagram for Configuration:
Public Member Functions | |
Configuration () | |
Configuration (const char *filename) | |
Configuration & | operator= (const String &value) |
unsigned int | sections () const |
NamedList * | getSection (unsigned int index) const |
NamedList * | getSection (const String §) const |
NamedString * | getKey (const String §, const String &key) const |
const char * | getValue (const String §, const String &key, const char *defvalue=0) const |
int | getIntValue (const String §, const String &key, int defvalue=0) const |
int | getIntValue (const String §, const String &key, const TokenDict *tokens, int defvalue=0) const |
double | getDoubleValue (const String §, const String &key, double defvalue=0.0) const |
bool | getBoolValue (const String §, const String &key, bool defvalue=false) const |
void | clearSection (const char *sect=0) |
void | createSection (const String §) |
void | clearKey (const String §, const String &key) |
void | addValue (const String §, const char *key, const char *value=0) |
void | setValue (const String §, const char *key, const char *value=0) |
void | setValue (const String §, const char *key, int value) |
void | setValue (const String §, const char *key, bool value) |
bool | load () |
bool | save () const |
A class for parsing and quickly accessing INI style configuration files
|
Create an empty configuration |
|
Create a configuration from a file
|
|
Add the value of a key in a section.
|
|
Deletes a key/value pair
|
|
Deletes an entire section
|
|
Makes sure a section with a given name exists, creates if required
|
|
Retrive the boolean value of a key in a section.
|
|
Retrive the floating point value of a key in a section.
|
|
Retrive the numeric value of a key in a section trying first a table lookup.
|
|
Retrive the numeric value of a key in a section.
|
|
Locate a key/value pair in the section.
|
|
Retrive an entire section
|
|
Retrive an entire section
|
|
Retrive the value of a key in a section.
|
|
Load the configuration from file
|
|
Assignment from string operator Reimplemented from String. |
|
Save the configuration to file
|
|
Get the number of sections
|
|
Set the boolean value of a key in a section.
|
|
Set the numeric value of a key in a section.
|
|
Set the value of a key in a section.
|