Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
telplugins_c_api.h
Go to the documentation of this file.
1 
41 #ifndef telplugins_c_apiH
42 #define telplugins_c_apiH
43 #include "telplugins_exporter.h"
44 #include "telplugins_types.h"
45 #include "telplugins_utilities.h"
46 #include "teljobs_api.h"
48 #include "telplugins_telluriumdata_api.h"
49 #include "telplugins_logging_api.h"
50 //---------------------------------------------------------------------------
51 
52 
53 #if defined(__cplusplus)
54 using tlpc::PluginEvent;
55 extern "C" {
56 #endif
57 
66 TLP_C_DS TELHandle tlp_cc tpCreatePluginManager(const char* pluginDir);
67 
74 TLP_C_DS bool tlp_cc tpFreePluginManager(TELHandle handle);
75 
83 TLP_C_DS bool tlp_cc tpLoadPlugins(TELHandle handle);
84 
89 TLP_C_DS char* tlp_cc tpGetPluginLoadErrors(TELHandle handle);
90 
97 TLP_C_DS bool tlp_cc tpUnLoadPlugins(TELHandle handle);
98 
106 TLP_C_DS TELHandle tlp_cc tpLoadPlugin(TELHandle handle, const char* pluginName);
107 
115 TLP_C_DS bool tlp_cc tpUnLoadPlugin(TELHandle handle, TELHandle plugin);
116 
123 TLP_C_DS int tlp_cc tpGetNumberOfPlugins(TELHandle handle);
124 
131 TLP_C_DS char* tlp_cc tpGetPluginNames(TELHandle handle);
132 
139 TLP_C_DS char* tlp_cc tpGetPluginLibraryNames(TELHandle handle);
140 
148 TLP_C_DS TELHandle tlp_cc tpGetFirstPlugin(TELHandle handle);
149 
157 TLP_C_DS TELHandle tlp_cc tpGetNextPlugin(TELHandle handle);
158 
166 TLP_C_DS TELHandle tlp_cc tpGetPreviousPlugin(TELHandle handle);
167 
175 TLP_C_DS TELHandle tlp_cc tpGetCurrentPlugin(TELHandle handle);
176 
185 TLP_C_DS TELHandle tlp_cc tpGetPlugin(TELHandle handle, const char* pluginName);
186 
195 TLP_C_DS long tlp_cc tpGetPluginSharedLibHandle(TELHandle handle, TELHandle pluginHandle);
196 
197 
198 //========================== PLUGIN HANDLE functions
205 TLP_C_DS char* tlp_cc tpGetPluginName(TELHandle handle);
206 
214 TLP_C_DS char* tlp_cc tpGetPluginCategory(TELHandle handle);
215 
222 TLP_C_DS char* tlp_cc tpGetPluginDescription(TELHandle handle);
223 
230 TLP_C_DS char* tlp_cc tpGetPluginHint(TELHandle handle);
231 
238 TLP_C_DS char* tlp_cc tpGetPluginInfo(TELHandle handle);
239 
246 TLP_C_DS char* tlp_cc tpGetPluginAuthor(TELHandle handle);
247 
254 TLP_C_DS char* tlp_cc tpGetPluginCopyright(TELHandle handle);
255 
262 TLP_C_DS char* tlp_cc tpGetPluginVersion(TELHandle handle);
263 
271 TLP_C_DS unsigned char* tlp_cc tpGetPluginManualAsPDF(TELHandle handle);
272 
279 TLP_C_DS unsigned int tlp_cc tpGetPluginManualNrOfBytes(TELHandle handle);
280 
289 TLP_C_DS bool tlp_cc tpAssignRoadRunnerInstance(TELHandle pHandle, TELHandle rrHandle);
290 
300 TLP_C_DS bool tlp_cc tpExecutePlugin(TELHandle handle);
301 
309 TLP_C_DS bool tlp_cc tpExecutePluginEx(TELHandle handle, bool inAThread);
310 
317 TLP_C_DS char* tlp_cc tpGetPluginStatus(TELHandle handle);
318 
325 TLP_C_DS char* tlp_cc tpGetPluginResult(TELHandle handle);
326 
333 TLP_C_DS bool tlp_cc tpResetPlugin(TELHandle handle);
334 
341 TLP_C_DS bool tlp_cc tpIsPluginWorking(TELHandle handle);
342 
350 TLP_C_DS void tlp_cc tpTerminateWork(TELHandle handle);
351 
358 TLP_C_DS bool tlp_cc tpIsBeingTerminated(TELHandle handle);
359 
366 TLP_C_DS bool tlp_cc tpWasTerminated(TELHandle handle);
367 
377 TLP_C_DS bool tlp_cc tpAssignOnStartedEvent(TELHandle handle, PluginEvent cb, void* userData1, void* userData2);
378 
388 TLP_C_DS bool tlp_cc tpAssignOnProgressEvent(TELHandle handle, PluginEvent cb, void* userData1, void* userData2);
389 
399 TLP_C_DS bool tlp_cc tpAssignOnFinishedEvent(TELHandle handle, PluginEvent cb, void* userData1, void* userData2);
400 
407 TLP_C_DS TELHandle tlp_cc tpGetRoadRunnerHandleFromPlugin(TELHandle handle);
408 
415 TLP_C_DS char* tlp_cc tpGetPluginPropertiesAsXML(TELHandle handle);
416 
423 TLP_C_DS TELHandle tlp_cc tpGetPluginProperties(TELHandle handle);
424 
431 TLP_C_DS char* tlp_cc tpGetListOfPluginPropertyNames(TELHandle handle);
432 
440 TLP_C_DS TELHandle tlp_cc tpGetPluginProperty(TELHandle handle, const char* propertyName);
441 
449 TLP_C_DS TELHandle tlp_cc tpGetPluginPropertyValueHandle(TELHandle handle, const char* propertyName);
450 
458 TLP_C_DS char* tlp_cc tpGetPluginPropertyValueAsString(TELHandle handle, const char* propertyName);
459 
468 TLP_C_DS bool tlp_cc tpSetPluginProperty(TELHandle handle, const char* propertyName, const char* value);
469 
475 TLP_C_DS char* tlp_cc tpGetLastError();
476 
481 TLP_C_DS bool tlp_cc tpFreeText(char* text);
482 
487 TLP_C_DS char* tlp_cc tpGetVersion();
488 
493 TLP_C_DS char* tlp_cc tpGetCopyright();
494 
500 TLP_C_DS TELHandle tlp_cc tpRegisterHandle(TELHandle handle, char* name);
501 
507 TLP_C_DS bool tlp_cc tpUnRegisterHandle(TELHandle handle);
508 
509 #if defined(__cplusplus)
510 } //rrp namespace and extern "C"
511 #endif
512 
513 #endif
514