libRoadRunner C API  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
Configuration keys/values

Loads and sets configuration options. More...

Functions

int setConfigBool (const char *key, int value)
 Set a boolean configuration value. More...
 
int getConfigBool (const char *key)
 Get a boolean configuration value. More...
 
int setConfigInt (const char *key, int value)
 Set an integer configuration value. More...
 
int getConfigInt (const char *key)
 Get an integer configuration value. More...
 
int setConfigDouble (const char *key, double value)
 Set a double configuration value. More...
 
double getConfigDouble (const char *key)
 Get a double configuration value. More...
 
RRStringArrayPtr getListOfConfigKeys ()
 Get a list of all possible config keys.
 

Detailed Description

Loads and sets configuration options.

Function Documentation

int getConfigBool ( const char *  key)

Get a boolean configuration value.

Parameters
[in]keyThe configuration key
Note
On error, sets an error message which can be retrieved via getLastError
double getConfigDouble ( const char *  key)

Get a double configuration value.

Parameters
[in]keyThe configuration key
Note
On error, sets an error message which can be retrieved via getLastError
int getConfigInt ( const char *  key)

Get an integer configuration value.

Parameters
[in]keyThe configuration key
Note
On error, sets an error message which can be retrieved via getLastError
int setConfigBool ( const char *  key,
int  value 
)

Set a boolean configuration value.

Parameters
[in]keyThe configuration key
[in]valueThe value to assign to the configuration key
Returns
Returns positive if successful
int setConfigDouble ( const char *  key,
double  value 
)

Set a double configuration value.

Parameters
[in]keyThe configuration key
[in]valueThe value to assign to the configuration key
Returns
Returns positive if successful
int setConfigInt ( const char *  key,
int  value 
)

Set an integer configuration value.

Parameters
[in]keyThe configuration key
[in]valueThe value to assign to the configuration key
Returns
Returns positive if successful