libRoadRunner Plugin C API
1.0.0
Plugin Framework for libRoadRunner
|
Plugins Parameter related functions. More...
Functions | |
RRParameterHandle | createParameter (const char *label, const char *type, const char *hint, void *value) |
Create a parameter of type "type". More... | |
bool | freeParameter (RRParameterHandle para) |
Free the memory created by a parameter. More... | |
bool | addParameterToList (RRParametersHandle handle, RRParameterHandle para) |
Add a parameter to a parameters container, from a parameter pointer. More... | |
bool | setParameterByString (RRParameterHandle handle, const char *value) |
Set a parameter by a string. More... | |
bool | getBoolParameter (RRParameterHandle handle, bool *value) |
Get a boolean parameter. More... | |
bool | setBoolParameter (RRParameterHandle handle, bool value) |
Set a boolean parameter. More... | |
bool | setIntParameter (RRParameterHandle handle, int value) |
Set an int parameter. More... | |
bool | getIntParameter (RRParameterHandle handle, int *value) |
Get the value of an int parameter. More... | |
bool | setDoubleParameter (RRParameterHandle handle, double value) |
Set a double parameter. More... | |
bool | getDoubleParameter (RRParameterHandle handle, double *value) |
Get the value of a double parameter. More... | |
bool | setStringParameter (RRParameterHandle handle, char *value) |
Set a string (char*) parameter. More... | |
bool | getStringParameter (RRParameterHandle handle, const char *(*value)) |
Get the value of a string (char*) parameter. More... | |
bool | setListParameter (RRParameterHandle handle, void *(value)) |
Set a listOfParameters (Parameters) parameter. More... | |
bool | getListParameter (RRParameterHandle handle, void *(value)) |
Get the value of a listOfParameters (Parameters) parameter. More... | |
bool | setRoadRunnerDataParameter (RRParameterHandle handle, void *value) |
Set a roadRunnerDataParameter parameter. More... | |
bool | getRoadRunnerDataParameter (RRParameterHandle handle, void *value) |
Get the value of a roadRunnerDataParameter parameter. More... | |
char * | getParameterInfo (RRParameterHandle handle) |
Get a parameters info. More... | |
char * | getParameterValueAsString (RRParameterHandle handle) |
Get a parameters value as char*. More... | |
void * | getParameterValueHandle (RRParameterHandle handle) |
Get a handle to a parameters value. More... | |
char * | getParameterName (RRParameterHandle handle) |
Get a parameters name. More... | |
char * | getParameterHint (RRParameterHandle handle) |
Get a parameters hint. More... | |
bool | setParameterHint (RRParameterHandle handle, const char *value) |
Set a parameters hint. More... | |
char * | getParameterDescription (RRParameterHandle handle) |
Get a parameters description. More... | |
bool | setParameterDescription (RRParameterHandle handle, const char *value) |
Set a parameters Description. More... | |
char * | getParameterType (RRParameterHandle handle) |
Get a parameters type. More... | |
RRParameterHandle | getFirstParameter (RRParametersHandle handle) |
RRParameterHandle | getNextParameter (RRParametersHandle handle) |
RRParameterHandle | getPreviousParameter (RRParametersHandle handle) |
RRParameterHandle | getCurrentParameter (RRParametersHandle handle) |
Plugins Parameter related functions.
bool addParameterToList | ( | RRParametersHandle | handle, |
RRParameterHandle | para | ||
) |
Add a parameter to a parameters container, from a parameter pointer.
handle | Handle to a RoadRunner instance |
para | Handle to a roadrunner parameter |
RRParameterHandle createParameter | ( | const char * | label, |
const char * | type, | ||
const char * | hint, | ||
void * | value | ||
) |
Create a parameter of type "type".
label | The parameters label as a string |
type | The parameters type as string. Possible values can be 'double', 'int', 'char*' etc, |
hint | The parameters hint as string. |
value | The parameters initial value casted to a (void*) pointer |
bool freeParameter | ( | RRParameterHandle | para | ) |
Free the memory created by a parameter.
paraHandle | A handle to the parameter |
bool getBoolParameter | ( | RRParameterHandle | handle, |
bool * | value | ||
) |
Get a boolean parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool getDoubleParameter | ( | RRParameterHandle | handle, |
double * | value | ||
) |
Get the value of a double parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool getIntParameter | ( | RRParameterHandle | handle, |
int * | value | ||
) |
Get the value of an int parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool getListParameter | ( | RRParameterHandle | handle, |
void * | value | ||
) |
Get the value of a listOfParameters (Parameters) parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
char* getParameterDescription | ( | RRParameterHandle | handle | ) |
Get a parameters description.
handle | to a Parameter instance |
char* getParameterHint | ( | RRParameterHandle | handle | ) |
Get a parameters hint.
handle | to a Parameter instance |
char* getParameterInfo | ( | RRParameterHandle | handle | ) |
Get a parameters info.
handle | Handle to a parameter instance |
char* getParameterName | ( | RRParameterHandle | handle | ) |
Get a parameters name.
handle | to a Parameter instance |
char* getParameterType | ( | RRParameterHandle | handle | ) |
Get a parameters type.
handle | to a Parameter instance |
char* getParameterValueAsString | ( | RRParameterHandle | handle | ) |
Get a parameters value as char*.
handle | to a Parameter instance |
void* getParameterValueHandle | ( | RRParameterHandle | handle | ) |
Get a handle to a parameters value.
handle | to a Parameter instance |
bool getRoadRunnerDataParameter | ( | RRParameterHandle | handle, |
void * | value | ||
) |
Get the value of a roadRunnerDataParameter parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool getStringParameter | ( | RRParameterHandle | handle, |
const char ** | value | ||
) |
Get the value of a string (char*) parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool setBoolParameter | ( | RRParameterHandle | handle, |
bool | value | ||
) |
Set a boolean parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool setDoubleParameter | ( | RRParameterHandle | handle, |
double | value | ||
) |
Set a double parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool setIntParameter | ( | RRParameterHandle | handle, |
int | value | ||
) |
Set an int parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool setListParameter | ( | RRParameterHandle | handle, |
void * | value | ||
) |
Set a listOfParameters (Parameters) parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool setParameterByString | ( | RRParameterHandle | handle, |
const char * | value | ||
) |
Set a parameter by a string.
handle | to a Parameter instance |
value | Pointer to string holding the value to assign to the parameter, e.g. "0.01" to set a double to 0.01 |
bool setParameterDescription | ( | RRParameterHandle | handle, |
const char * | value | ||
) |
Set a parameters Description.
handle | to a Parameter instance |
value | The parameter description as a string |
bool setParameterHint | ( | RRParameterHandle | handle, |
const char * | value | ||
) |
Set a parameters hint.
handle | to a Parameter instance |
value | The parameter hint as a string |
bool setRoadRunnerDataParameter | ( | RRParameterHandle | handle, |
void * | value | ||
) |
Set a roadRunnerDataParameter parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |
bool setStringParameter | ( | RRParameterHandle | handle, |
char * | value | ||
) |
Set a string (char*) parameter.
handle | to a Parameter instance |
value | to assign to the parameter. |