Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
Others

Toplevel classes. More...

Classes

class  auterion::SDK
 SDK execution class. All callbacks are called on the same thread. More...
 
template<typename 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.
 

Detailed Description

Toplevel classes.

Function Documentation

◆ getSetting()

template<typename T >
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.

Template Parameters
TThe type of the setting value. Supported types are double, bool, string, and int.
Parameters
nameThe name of the setting to retrieve.
default_valueThe default value to return if the setting is not found.
Returns
The value of the setting if found, otherwise the default value.