API Documentation
|
Stores a groups of GenericOptions that can be used to group them. More...
#include <GenericOptions.h>
Public Member Functions | |
void | addOption (const GenericOption &option) |
template<class t_type > | |
void | addOption (const TranslatedString &name, const t_type &value, bool is_editable=true) |
void | addOptionsToINI (INIFactory &factory) |
void | clear () |
virtual void | fromJSONNode (const JSONNode &node) |
GenericOptionGroup ()=default | |
GenericOptionGroup (const TranslatedString &group_name, const String &group_id=String()) | |
GenericOption & | getOption (const TranslatedString &n) |
const GenericOption & | getOption (const TranslatedString &n) const |
template<class t_type > | |
t_type | getValue (const String &name) const |
template<class t_type > | |
t_type | getValue (const String &name, const t_type &value_if_not_exist) const |
template<class t_type > | |
t_type | getValue (const TranslatedString &name) const |
template<class t_type > | |
t_type | getValue (const TranslatedString &name, const t_type &value_if_not_exist) const |
bool | hasOption (const String &option_name) const |
bool | hasOption (const TranslatedString &option_name) const |
INIFactory | ini () |
bool | operator!= (const GenericOptionGroup &option_group) const |
bool | operator== (const GenericOptionGroup &option_group) const |
void | setOption (const GenericOption &option) |
template<class t_type > | |
void | setValue (const String &name, const t_type &value) |
template<class t_type > | |
void | setValue (const TranslatedString &name, const t_type &value) |
virtual JSONNode | toJSONNode (bool only_value=true) const |
virtual | ~GenericOptionGroup () |
Public Attributes | |
String | id |
TranslatedString | name |
Dictionary< String, GenericOption > | options |
Buffer< String > | ordered_options |
Stores a groups of GenericOptions that can be used to group them.
|
default |
GenericOptionGroup | ( | const TranslatedString & | group_name, |
const String & | group_id = String() ) |
|
virtual |
|
inline |
|
inline |
void addOptionsToINI | ( | INIFactory & | factory | ) |
void clear | ( | ) |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
INIFactory ini | ( | ) |
bool operator!= | ( | const GenericOptionGroup & | option_group | ) | const |
bool operator== | ( | const GenericOptionGroup & | option_group | ) | const |
|
inline |
|
inline |
|
inline |
|
nodiscardvirtual |
String id |
TranslatedString name |
Dictionary<String, GenericOption> options |