48 #if defined(__cplusplus)
49 namespace rrp {
extern "C" {
424 RRP_DECLSPEC RRCDataPtr rrp_cc
createRRCData(RRDataHandle rrDataHandle);
463 RRP_DECLSPEC
bool rrp_cc
getRRCDataElementF(RRCDataPtr rrcData,
int r,
int c,
double *value);
481 RRP_DECLSPEC
char* rrp_cc getRoadRunnerDataColumnHeader(RRDataHandle _data);
482 RRP_DECLSPEC
int rrp_cc getRoadRunnerDataNumRows(RRDataHandle rrData);
483 RRP_DECLSPEC
int rrp_cc getRoadRunnerDataNumCols(RRDataHandle rrData);
484 RRP_DECLSPEC RRDataHandle rrp_cc createRoadRunnerData(
int rows,
int cols,
char* colNames);
485 RRP_DECLSPEC
bool rrp_cc freeRoadRunnerData(RRDataHandle handle);
494 RRP_DECLSPEC
bool rrp_cc writeRoadRunnerDataToFile(RRDataHandle rrData,
char* fName);
495 RRP_DECLSPEC
bool rrp_cc readRoadRunnerDataFromFile(RRDataHandle rrData,
char* fName);
511 RRP_DECLSPEC
bool rrp_cc
freeText(
char* text);
514 #if defined(__cplusplus)
bool freeText(char *text)
Free char* generated by library routines.
Definition: rrp_api.cpp:424
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.
Definition: rrp_api.cpp:438
RRPluginHandle getFirstPlugin(RRPluginManagerHandle handle)
getFirstPlugin retrieves the "first" plugin in the plugin managers internal list of plugins...
Definition: rrp_api.cpp:60
unsigned int getPluginManualNrOfBytes(RRPluginHandle handle)
Get the byte size for the PDF manual.
Definition: rrp_api.cpp:248
RRDataHandle getRoadRunnerDataHandle(RRHandle handle)
Retrieve a handle to RoadRunners internal data.
Definition: rrp_api.cpp:373
bool resetPlugin(RRPluginHandle handle)
Reset a Plugin. Plugin dependent. A reset function should bring the internal state of a plugin to a k...
Definition: rrp_api.cpp:333
int getRRCDataNumCols(RRCDataPtr rrData)
Retrieve the number of columns in the given rrCData data (returned form simulat(RRHandle handle)) ...
Definition: rrp_api.cpp:399
bool setPluginParameter(RRPluginHandle handle, const char *parameterName, const char *value)
Set the value of a PluginParameter by a string.
Definition: rrp_api.cpp:231
void * RRParametersHandle
Void pointer to a RRParameters instance (Container for parameters)
Definition: rrp_types.h:66
bool executePlugin(RRPluginHandle handle)
The executePlugin function is the function designated to fire of a Plugins "worker". What is done when this function is entered is plugin dependent.
Definition: rrp_api.cpp:280
int getNumberOfPlugins(RRPluginManagerHandle handle)
Get Number of loaded plugins.
Definition: rrp_api.cpp:141
bool isPluginWorking(RRPluginHandle handle)
check if plugin is actively working
Definition: rrp_api.cpp:365
void(* PluginEvent)(void *, void *)
Typedef for plugin event function.
Definition: rrp_types.h:54
bool assignPluginInput(RRPluginHandle handle, void *userData)
Hand external data to a plugin.
Definition: rrp_api.cpp:325
Plugins API Types Header.
char * stringArrayToStringFWD(const RRStringArrayPtr list)
Returns a string list in string form.
Definition: rrp_api.cpp:414
bool unLoadPlugins(RRPluginManagerHandle handle)
Unload plugins.
Definition: rrp_api.cpp:116
void terminateWork(RRPluginHandle handle)
Terminate any work that is in progress in a plugin. If the plugins worker is executed in a thread...
Definition: rrp_api.cpp:349
RRParameterHandle getPluginParameter(RRPluginHandle handle, const char *parameterName)
Get a parameter handle to a parameter.
Definition: rrp_api.cpp:218
libRoadRunner Plugins C API 2012-2013
bool assignOnProgressEvent(RRPluginHandle handle, PluginEvent cb, void *userData1, void *userData2)
Assign event function fired as a plugin progresses.
Definition: rrp_api.cpp:301
char * getPluginNames(RRPluginManagerHandle handle)
Function to retrieve the names of currently loaded plugins.
Definition: rrp_api.cpp:176
bool executePluginEx(RRPluginHandle handle, bool inAThread)
The executePluginEx is similar to the executePlugin function, except it takes two extra arguments...
Definition: rrp_api.cpp:285
char * getPluginStatus(RRPluginHandle handle)
Get some status of a plugin. See the plugins documentation on what to expect.
Definition: rrp_api.cpp:264
void * RRPluginHandle
Void pointer to a Plugin instance.
Definition: rrp_types.h:60
RRPluginManagerHandle createPluginManager(const char *pluginDir)
Create a new instance of a plugin manager.
Definition: rrp_api.cpp:27
char * getLastPluginError()
Return last API error.
Definition: rrp_api.cpp:419
bool isBeingTerminated(RRPluginHandle handle)
Check if the work of a plugin is currently being terminated.
Definition: rrp_api.cpp:341
char * getListOfPluginParameterNames(RRPluginHandle handle)
Get a list of a plugin parameter names, as a string. Space being the delimiter.
Definition: rrp_api.cpp:210
void * RRPluginManagerHandle
Void pointer to a PluginManager instance.
Definition: rrp_types.h:57
RRPluginHandle getCurrentPlugin(RRPluginManagerHandle handle)
getCurrentPlugin retrieves the "current" plugin in the plugin managers internal list of plugins...
Definition: rrp_api.cpp:84
char * getPluginResult(RRPluginHandle handle)
Returns a plugins result, as a string. See the plugins documentation on what to expect.
Definition: rrp_api.cpp:317
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.
Definition: rrp_api.cpp:409
void * RRParameterHandle
Void pointer to a Parameter instance.
Definition: rrp_types.h:63
RRPluginHandle loadPlugin(RRPluginManagerHandle handle, const char *pluginName)
Load a particular plugin.
Definition: rrp_api.cpp:92
char * getPluginLibraryNames(RRPluginManagerHandle handle)
Function to retrieve the library name of currently loaded plugins.
Definition: rrp_api.cpp:185
unsigned char * getPluginManualAsPDF(RRPluginHandle handle)
Get Plugin manual as PDF. A plugin may embedd a help manual as a PDF. This function return such as a ...
Definition: rrp_api.cpp:256
bool assignRoadRunnerInstance(RRPluginHandle pHandle, RRHandle rrHandle)
Assign a roadrunner instance handle for the plugin to use. A plugin may use an externally created roa...
Definition: rrp_api.cpp:272
RRPluginHandle getPreviousPlugin(RRPluginManagerHandle handle)
getPreviousPlugin retrieves the "previous" plugin in the plugin managers internal list of plugins...
Definition: rrp_api.cpp:76
RRPluginHandle getNextPlugin(RRPluginManagerHandle handle)
getNextPlugin retrieves the "next" plugin in the plugin managers internal list of plugins...
Definition: rrp_api.cpp:68
RRCDataPtr createRRCData(RRDataHandle rrDataHandle)
Create a RoadRunner C data structure (RRCDataPtr) from RoadRunner data.
Definition: rrp_api.cpp:381
Plugins API Parameters Header.
bool loadPlugins(RRPluginManagerHandle handle)
Load plugins. The function will look in the default plugin folder for plugins, and load them...
Definition: rrp_api.cpp:108
bool assignOnStartedEvent(RRPluginHandle handle, PluginEvent cb, void *userData1, void *userData2)
Assign event function fired when a plugin starts its work.
Definition: rrp_api.cpp:293
char * getPluginPropertiesAsXML(RRPluginHandle handle)
Get a Plugins Parameterse as an xml document. The string returned from this function is formated as x...
Definition: rrp_api.cpp:429
int getRRCDataNumRows(RRCDataPtr rrData)
Retrieve the number of rows in the given RoadRunner C numberical data (returned from simulate(RRHandl...
Definition: rrp_api.cpp:389
bool freePluginManager(RRPluginManagerHandle handle)
Free the plugin manager. A call to this function will also unload any loaded plugins.
Definition: rrp_api.cpp:49
bool assignOnFinishedEvent(RRPluginHandle handle, PluginEvent cb, void *userData1, void *userData2)
Assign event function fired when a plugin finishes its work.
Definition: rrp_api.cpp:309
bool unLoadPlugin(RRPluginManagerHandle handle, RRPluginHandle plugin)
unload a particular plugin
Definition: rrp_api.cpp:124
RRParametersHandle getPluginParameters(RRPluginHandle handle)
Get a handle to a plugins parameters.
Definition: rrp_api.cpp:202
bool wasTerminated(RRPluginHandle handle)
wasTerminated. query a plugin if work was terminated before completion
Definition: rrp_api.cpp:357
char * getPluginInfo(RRPluginHandle handle)
Return some information about a Plugin.
Definition: rrp_api.cpp:240
RRHandle getRRHandleFromPlugin(RRPluginHandle handle)
Get roadrunner instance handle from plugin.
Definition: rrp_api.cpp:168
long getPluginSharedLibHandle(RRPluginManagerHandle handle, RRPluginHandle pluginHandle)
Get a handle to a plugins shared library.
RRPluginHandle getPlugin(RRPluginManagerHandle handle, const char *pluginName)
GetPluginHandle.
Definition: rrp_api.cpp:149
char * getPluginName(RRPluginHandle handle)
Get the name of a Plugin.
Definition: rrp_api.cpp:194