wxConfig
A basic configuration class.
Creation Parameters
- sequence appName
- sequence vendorName [= ""]
- sequence localFilename [= ""]
- sequence globalFilename [= ""]
- atom style [= 0]
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
- proc config_delete_all( atom config )
- proc config_delete_entry( atom config, object key, atom delete_group_if_empty )
- proc config_delete_group( atom config, object key )
- proc config_exists( atom config, object key )
- proc config_flush( atom config, atom current_only )
- func config_read( atom config, object key, object defaultValue )
- proc config_write( atom config, object key, object value )
- proc delete_config( object obj )
- func get_config_app_name( atom config )
- func get_first_config_entry( atom config, atom index )
- func get_first_config_group( atom config, atom index )
- func get_next_config_entry( atom config, atom index )
- func get_next_config_group( atom config, atom index )
Supertopics
wxConfig
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
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
Category:
wxConfig
Returns true if either a group or an entry with a given name exists.
wxConfig
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
Category:
wxConfig
Deletes the wxConfig object.
wxConfig
Category:
wxConfig
Returns the application name.
wxConfig
Category:
wxConfig
Gets the first entry.
wxConfig
Category:
wxConfig
Gets the first group.
wxConfig
Category:
wxConfig
Gets the next entry.
wxConfig
Category:
wxConfig
Gets the next group.