#include <config_component.h>
|
| RIME_DLL | Config () |
| virtual RIME_DLL | ~Config () |
| | Config (an< ConfigData > data) |
| bool | Save () |
| bool | LoadFromStream (std::istream &stream) |
| bool | SaveToStream (std::ostream &stream) |
| RIME_DLL bool | LoadFromFile (const path &file_path) |
| RIME_DLL bool | SaveToFile (const path &file_path) |
| RIME_DLL bool | IsNull (const string &path) |
| bool | IsValue (const string &path) |
| RIME_DLL bool | IsList (const string &path) |
| RIME_DLL bool | IsMap (const string &path) |
| RIME_DLL bool | GetBool (const string &path, bool *value) |
| RIME_DLL bool | GetInt (const string &path, int *value) |
| RIME_DLL bool | GetDouble (const string &path, double *value) |
| RIME_DLL bool | GetString (const string &path, string *value) |
| RIME_DLL size_t | GetListSize (const string &path) |
| an< ConfigItem > | GetItem (const string &path) |
| an< ConfigValue > | GetValue (const string &path) |
| RIME_DLL an< ConfigList > | GetList (const string &path) |
| RIME_DLL an< ConfigMap > | GetMap (const string &path) |
| bool | SetBool (const string &path, bool value) |
| RIME_DLL bool | SetInt (const string &path, int value) |
| bool | SetDouble (const string &path, double value) |
| RIME_DLL bool | SetString (const string &path, const char *value) |
| bool | SetString (const string &path, const string &value) |
| RIME_DLL bool | SetItem (const string &path, an< ConfigItem > item) |
| template<class T> |
| ConfigItemRef & | operator= (const T &x) |
| | ConfigItemRef (ConfigData *data) |
| virtual | ~ConfigItemRef ()=default |
| | operator an< ConfigItem > () const |
| an< ConfigItem > | operator* () const |
| template<class T> |
| ConfigItemRef & | operator= (const T &x) |
| ConfigListEntryRef | operator[] (size_t index) |
| ConfigMapEntryRef | operator[] (const string &key) |
| RIME_DLL bool | IsNull () const |
| bool | IsValue () const |
| RIME_DLL bool | IsList () const |
| bool | IsMap () const |
| RIME_DLL bool | ToBool () const |
| RIME_DLL int | ToInt () const |
| double | ToDouble () const |
| RIME_DLL string | ToString () const |
| RIME_DLL an< ConfigList > | AsList () |
| RIME_DLL an< ConfigMap > | AsMap () |
| RIME_DLL void | Clear () |
| RIME_DLL bool | Append (an< ConfigItem > item) |
| RIME_DLL size_t | size () const |
| RIME_DLL bool | HasKey (const string &key) const |
| RIME_DLL bool | modified () const |
| RIME_DLL void | set_modified () |
◆ Config() [1/2]
◆ ~Config()
| rime::Config::~Config |
( |
| ) |
|
|
virtual |
◆ Config() [2/2]
◆ GetBool()
| bool rime::Config::GetBool |
( |
const string & | path, |
|
|
bool * | value ) |
◆ GetDouble()
| bool rime::Config::GetDouble |
( |
const string & | path, |
|
|
double * | value ) |
◆ GetInt()
| bool rime::Config::GetInt |
( |
const string & | path, |
|
|
int * | value ) |
◆ GetItem() [1/2]
◆ GetItem() [2/2]
| an< ConfigItem > rime::Config::GetItem |
( |
const string & | path | ) |
|
◆ GetList()
| an< ConfigList > rime::Config::GetList |
( |
const string & | path | ) |
|
◆ GetListSize()
| size_t rime::Config::GetListSize |
( |
const string & | path | ) |
|
◆ GetMap()
| an< ConfigMap > rime::Config::GetMap |
( |
const string & | path | ) |
|
◆ GetString()
| bool rime::Config::GetString |
( |
const string & | path, |
|
|
string * | value ) |
◆ GetValue()
◆ IsList()
| bool rime::Config::IsList |
( |
const string & | path | ) |
|
◆ IsMap()
| bool rime::Config::IsMap |
( |
const string & | path | ) |
|
◆ IsNull()
| bool rime::Config::IsNull |
( |
const string & | path | ) |
|
◆ IsValue()
| bool rime::Config::IsValue |
( |
const string & | path | ) |
|
◆ LoadFromFile()
| bool rime::Config::LoadFromFile |
( |
const path & | file_path | ) |
|
◆ LoadFromStream()
| bool rime::Config::LoadFromStream |
( |
std::istream & | stream | ) |
|
◆ operator=()
◆ Save()
| bool rime::Config::Save |
( |
| ) |
|
◆ SaveToFile()
| bool rime::Config::SaveToFile |
( |
const path & | file_path | ) |
|
◆ SaveToStream()
| bool rime::Config::SaveToStream |
( |
std::ostream & | stream | ) |
|
◆ SetBool()
| bool rime::Config::SetBool |
( |
const string & | path, |
|
|
bool | value ) |
◆ SetDouble()
| bool rime::Config::SetDouble |
( |
const string & | path, |
|
|
double | value ) |
◆ SetInt()
| bool rime::Config::SetInt |
( |
const string & | path, |
|
|
int | value ) |
◆ SetItem() [1/2]
◆ SetItem() [2/2]
| bool rime::Config::SetItem |
( |
const string & | path, |
|
|
an< ConfigItem > | item ) |
◆ SetString() [1/2]
| bool rime::Config::SetString |
( |
const string & | path, |
|
|
const char * | value ) |
◆ SetString() [2/2]
| bool rime::Config::SetString |
( |
const string & | path, |
|
|
const string & | value ) |
◆ data_
The documentation for this class was generated from the following files: