Ambition.Config – ambition Reference Manual
Packages
ambition
Ambition
Config
get_instance
lookup
lookup_bool
lookup_int
lookup_int64
lookup_with_default
reset
set_value
Config
Config
Object Hierarchy:
Description:
public
class
Config
:
Object
Singleton class representing the application configuration.
Namespace:
Ambition
Package:
ambition
Content:
Static methods:
public
static
string
?
lookup
(
string
key)
Look up a config element by key name
public
static
string
?
lookup_with_default
(
string
key,
string
default_value)
Look up a config element by key name, with a default value if the value is not found
public
static
void
set_value
(
string
key,
string
value)
Set a config value.
public
static
int
?
lookup_int
(
string
key)
Look up a config element by key name, and convert it to an integer.
public
static
int64
?
lookup_int64
(
string
key)
Look up a config element by key name, and convert it to an int64.
public
static
bool
?
lookup_bool
(
string
key)
Look up a config element by key name, and convert it to a bool. Valid 'true' values are 'true' of any capitalization, '1', 't', and 'yes'. All other values are false.
public
static
ConfigInstance
get_instance
()
public
static
void
reset
()
Creation methods:
public
Config
()
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count