Public Member Functions | |
| Configuration (string storePath, bool isServer) | |
| Constructor. | |
| XmlElement | GetElement (string key) |
| Returns the XmlElement for the specified key. Creates the key if does not exist. | |
| XmlElement | GetElement (string section, string key) |
| Returns the XmlElement for the specified key. | |
| string | Get (string key) |
| Returns the value for the specified key. | |
| string | Get (string section, string key) |
| Returns the value for the specified key. | |
| bool | Exists (string key) |
| Checks for existence of a specified key. | |
| bool | Exists (string section, string key) |
| Checks for existence of a specified section and key. | |
| string | ToXml () |
| Returns the XML representation of the config file. | |
| Simias::Configuration::Configuration | ( | string | storePath, | |
| bool | isServer | |||
| ) | [inline] |
Constructor.
| storePath | The directory path to the store. | |
| isServer | True if running in a server configuration. |
| XmlElement Simias::Configuration::GetElement | ( | string | key | ) | [inline] |
Returns the XmlElement for the specified key. Creates the key if does not exist.
| key | The key to return. |
| XmlElement Simias::Configuration::GetElement | ( | string | section, | |
| string | key | |||
| ) | [inline] |
Returns the XmlElement for the specified key.
| section | The section where the key is stored. | |
| key | The key to return. |
| string Simias::Configuration::Get | ( | string | key | ) | [inline] |
Returns the value for the specified key.
| key | The key to get the value for. |
| string Simias::Configuration::Get | ( | string | section, | |
| string | key | |||
| ) | [inline] |
Returns the value for the specified key.
| section | The section where the key exists. | |
| key | The key to get the value for. |
| bool Simias::Configuration::Exists | ( | string | key | ) | [inline] |
Checks for existence of a specified key.
| key | The key to check for existence. |
| bool Simias::Configuration::Exists | ( | string | section, | |
| string | key | |||
| ) | [inline] |
Checks for existence of a specified section and key.
| section | The section for the tuple | |
| key | The key to set. If this parameter is null, then only the section is checked for existence. |
| string Simias::Configuration::ToXml | ( | ) | [inline] |
Returns the XML representation of the config file.
1.5.6