This class is used to save/restore the option preferences from the preferences file.
#include
<class_option_preference_i_o_1_1_option_preferences_data_list.h>
Public Member Functions |
|
__init__ () | |
reset () | |
Resets all of the option preference items to
their default values. |
|
set () | |
Sets the option preference item named
"prefName" to the value "prefValue". |
|
get () | |
Returns the value of the option preference
item named "prefName", or None if the option preference item does
not exist. |
|
getNames () | |
Returns a list of the option preference item
names. |
|
exists () | |
Returns true if the option preference item
named "prefName" exists. |
|
remove () | |
Removes the option preference item named
"prefName", if it exists. |
OptionPreferenceIO.OptionPreferencesDataList.__init__ | ( | ) |
OptionPreferenceIO.OptionPreferencesDataList.reset | ( | ) |
Resets all of the option preference items to their default values.
Any items not initialized explicitly here do not exist.
OptionPreferenceIO.OptionPreferencesDataList.set | ( | ) |
Sets the option preference item named "prefName" to the value "prefValue".
OptionPreferenceIO.OptionPreferencesDataList.get | ( | ) |
Returns the value of the option preference item named "prefName", or None if the option preference item does not exist.
Optionally, the value is converted to "type".
OptionPreferenceIO.OptionPreferencesDataList.getNames | ( | ) |
Returns a list of the option preference item names.
OptionPreferenceIO.OptionPreferencesDataList.exists | ( | ) |
Returns true if the option preference item named "prefName" exists.
OptionPreferenceIO.OptionPreferencesDataList.remove | ( | ) |
Removes the option preference item named "prefName", if it exists.