TinkeCell API
1.0.0
C/Python/Octave/Ruby API
|
00001 #ifndef TINKERCELL_TC_DYNAMICLIBRARYTOOL_API_H 00002 #define TINKERCELL_TC_DYNAMICLIBRARYTOOL_API_H 00003 00004 #include "TC_structs.h" 00005 BEGIN_C_DECLS 00006 00013 TCAPIEXPORT int tc_compileAndRun(const char* command,const char* args); 00021 TCAPIEXPORT int tc_compileBuildLoad(const char* filename,const char* function,const char* title); 00030 TCAPIEXPORT int tc_compileBuildLoadSliders(const char* filename,const char* function,const char* title, tc_matrix inputs); 00031 00037 TCAPIEXPORT void tc_runPythonCode(const char* code); 00038 00044 TCAPIEXPORT void tc_runPythonFile(const char* filename); 00045 00054 TCAPIEXPORT void tc_addPythonPlugin(const char* file,const char* name,const char* description,const char* category, const char* icon); 00055 00061 TCAPIEXPORT void tc_callFunction(const char* functionTitle); 00062 00068 TCAPIEXPORT void tc_displayCode(const char* code); 00069 00075 TCAPIEXPORT void tc_loadLibrary(const char* filename); 00076 00092 TCAPIEXPORT void tc_OctaveTool_api( 00093 void (*runOctaveCode)(const char*), 00094 void (*runOctaveFile)(const char*), 00095 void (*addOctavePlugin)(const char*,const char*,const char*,const char*,const char*) 00096 ); 00097 TCAPIEXPORT void tc_addFunction(void (*f)(), const char* title, const char* description, const char* category, const char* iconFile, const char* target_family, int show_menu, int in_tool_menu, int make_default); 00098 00104 TCAPIEXPORT void tc_runOctaveCode(const char* code); 00105 00111 TCAPIEXPORT void tc_runOctaveFile(const char* filename); 00112 00121 TCAPIEXPORT void tc_addOctavePlugin(const char* file,const char* name,const char* description,const char* category, const char* icon); 00122 00127 TCAPIEXPORT void tc_DynamicLibraryMenu_api(void (*callFunction)(const char*)); 00128 00133 TCAPIEXPORT void tc_LoadCLibraries_api( 00134 int (*compileAndRun)(const char* ,const char* ), 00135 int (*compileBuildLoad)(const char* ,const char* , const char*), 00136 int (*compileBuildLoadSliders)(const char* ,const char* ,const char* , tc_matrix ), 00137 void (*loadLibrary)(const char*), 00138 void (*addFunction)(void (*f)(), const char*, const char*, const char*, const char*, const char*, int, int, int), 00139 void (*displayCode)(const char*) 00140 ); 00141 00146 TCAPIEXPORT void tc_PythonTool_api( 00147 void (*runPythonCode)(const char*), 00148 void (*runPythonFile)(const char*), 00149 void (*addPythonPlugin)(const char*,const char*,const char*,const char*,const char*) 00150 ); 00151 00156 TCAPIEXPORT void tc_OctaveTool_api( 00157 void (*runOctaveCode)(const char*), 00158 void (*runOctaveFile)(const char*), 00159 void (*addOctavePlugin)(const char*,const char*,const char*,const char*,const char*) 00160 ); 00161 00162 END_C_DECLS 00163 #endif 00164