libRoadRunner Plugin C API
1.0.0
Plugin Framework for libRoadRunner
|
Functions to help and assist in the use of the Plugins framework. More...
Functions | |
RRCDataPtr | createRRCData (RRDataHandle rrDataHandle) |
Create a RoadRunner C data structure (RRCDataPtr) from RoadRunner data. More... | |
int | getRRCDataNumRows (RRCDataPtr rrData) |
Retrieve the number of rows in the given RoadRunner C numberical data (returned from simulate(RRHandle handle)) More... | |
int | getRRCDataNumCols (RRCDataPtr rrData) |
Retrieve the number of columns in the given rrCData data (returned form simulat(RRHandle handle)) More... | |
bool | getRRCDataElementF (RRCDataPtr rrcData, int r, int c, double *value) |
Retrieves an element at a given row and column from a RRCData struct type variable. More... | |
bool | getRoadRunnerDataElement (RRDataHandle rrData, int r, int c, double *value) |
Retrieves an element at a given row and column from a RoadRunner data type variable. More... | |
char * | stringArrayToStringFWD (const RRStringArrayPtr list) |
Returns a string list in string form. More... | |
char * | getLastPluginError () |
Return last API error. More... | |
Functions to help and assist in the use of the Plugins framework.
RRCDataPtr createRRCData | ( | RRDataHandle | rrDataHandle | ) |
Create a RoadRunner C data structure (RRCDataPtr) from RoadRunner data.
rrDataHandle | A pointer to a RoadRunner numerical data type variable |
char* getLastPluginError | ( | ) |
Return last API error.
bool getRoadRunnerDataElement | ( | RRDataHandle | rrData, |
int | r, | ||
int | c, | ||
double * | value | ||
) |
Retrieves an element at a given row and column from a RoadRunner data type variable.
RoadRunner numerical data are indexed from zero
Example:
rrcData | A Handle o a RoadRunner data type variable | |
r | -The row index to the rrData data | |
c | - The column index to the rrData data | |
[out] | value | - The retrieved value from the rrData data |
bool getRRCDataElementF | ( | RRCDataPtr | rrcData, |
int | r, | ||
int | c, | ||
double * | value | ||
) |
Retrieves an element at a given row and column from a RRCData struct type variable.
RoadRunner numerical data are indexed from zero
Example:
rrcData | A pointer to a rrCData type variable | |
r | -The row index to the rrData data | |
c | - The column index to the rrData data | |
[out] | value | - The retrieved value from the rrData data |
int getRRCDataNumCols | ( | RRCDataPtr | rrData | ) |
Retrieve the number of columns in the given rrCData data (returned form simulat(RRHandle handle))
Example:
rrData | A pointer to a rrData type variable |
int getRRCDataNumRows | ( | RRCDataPtr | rrData | ) |
Retrieve the number of rows in the given RoadRunner C numberical data (returned from simulate(RRHandle handle))
Example:
rrData | A pointer to a RoadRunner numerical data type variable |
char* stringArrayToStringFWD | ( | const RRStringArrayPtr | list | ) |
Returns a string list in string form.