libroadrunner C API
Functions
Configuration keys/values

Loads and sets configuration options. More...

Functions

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

Detailed Description

Loads and sets configuration options.

Function Documentation

◆ getConfigBool()

C_DECL_SPEC int rrcCallConv 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

◆ getConfigDouble()

C_DECL_SPEC double rrcCallConv 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

◆ getConfigInt()

C_DECL_SPEC int rrcCallConv 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

◆ setConfigBool()

C_DECL_SPEC int rrcCallConv 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

◆ setConfigDouble()

C_DECL_SPEC int rrcCallConv 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

◆ setConfigInt()

C_DECL_SPEC int rrcCallConv 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