|
Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
|
Toplevel classes. More...
| template<typename T > | |
| T | auterion::getSetting (const std::string &name, const T &default_value) |
| Retrieve an app's setting value given its name. More... | |
| template<> | |
| double | auterion::getSetting< double > (const std::string &name, const double &default_value) |
| Specialization of getSetting function for double type. | |
| template<> | |
| bool | auterion::getSetting< bool > (const std::string &name, const bool &default_value) |
| Specialization of getSetting function for bool type. | |
| template<> | |
| int | auterion::getSetting< int > (const std::string &name, const int &default_value) |
| Specialization of getSetting function for int type. | |
| template<> | |
| std::string | auterion::getSetting< std::string > (const std::string &name, const std::string &default_value) |
| Specialization of getSetting function for string type. | |
Toplevel classes.
| T auterion::getSetting | ( | const std::string & | name, |
| const T & | default_value | ||
| ) |
Retrieve an app's setting value given its name.
If the setting is not found in the configuration, the default value is returned.
| T | The type of the setting value. Supported types are double, bool, string, and int. |
| name | The name of the setting to retrieve. |
| default_value | The default value to return if the setting is not found. |