wxConfig

wxConfig
A basic configuration class.

Creation Parameters

wxConfig allows you to write the same code regardless of whether you're working with the registry under Win32 or text-based config files under Unix. To make writing the portable code even easier, wxEuphoria automatically maps to the native wxConfig implementation on the given platform: i.e. wxRegConfig under Win32 and wxFileConfig otherwise.

Functions/Procedures
Supertopics

wxConfig

[proc]
config_delete_all
( atom config )

Category: wxConfig

Delete the whole underlying object (disk file, registry key, ...). Primarly for use by uninstallation routine.


wxConfig

[proc]
config_delete_entry
( atom config, object key, atom delete_group_if_empty )

Category: wxConfig

Deletes the specified entry and the group it belongs to if it was the last key in it and the second parameter is true.


wxConfig

[proc]
config_delete_group
( atom config, object key )

Category: wxConfig

Delete the group (with all subgroups). If the current path is under the group being deleted it is changed to its deepest still existing component. E.g. if the current path is A/B/C/D and the group C is deleted the path becomes A/B.


wxConfig

[proc]
config_exists
( atom config, object key )

Category: wxConfig

Returns true if either a group or an entry with a given name exists.


wxConfig

[proc]
config_flush
( atom config, atom current_only )

Category: wxConfig

Permanently writes all changes (otherwise, they're only written when the object is destroyed).


wxConfig

[func]
config_read
( atom config, object key, object defaultValue )

Category: wxConfig

Read an object from the key. The defaultValue is returned if the key was not found.

Note: The return object is expected to be the same type as the defaultValue object.


wxConfig

[proc]
config_write
( atom config, object key, object value )

Category: wxConfig

Write the specified value to the config file.


wxConfig

[proc]
delete_config
( object obj )

Category: wxConfig

Deletes the wxConfig object.


wxConfig

[func]
get_config_app_name
( atom config )

Category: wxConfig

Returns the application name.


wxConfig

[func]
get_first_config_entry
( atom config, atom index )

Category: wxConfig

Gets the first entry.


wxConfig

[func]
get_first_config_group
( atom config, atom index )

Category: wxConfig

Gets the first group.


wxConfig

[func]
get_next_config_entry
( atom config, atom index )

Category: wxConfig

Gets the next entry.


wxConfig

[func]
get_next_config_group
( atom config, atom index )

Category: wxConfig

Gets the next group.