TinkeCell API
1.0.0
C/Python/Octave/Ruby API
|
00001 #ifndef TINKERCELL_TC_BASICINFORMATIONTOOL_API_H 00002 #define TINKERCELL_TC_BASICINFORMATIONTOOL_API_H 00003 00004 #include "TC_structs.h" 00005 00006 BEGIN_C_DECLS 00007 00014 TCAPIEXPORT tc_matrix tc_getParameters(tc_items a); 00021 TCAPIEXPORT tc_matrix tc_getInitialValues(tc_items a); 00028 TCAPIEXPORT void tc_setInitialValues(tc_items items,tc_matrix values); 00035 TCAPIEXPORT tc_matrix tc_getFixedVariables(tc_items a); 00042 TCAPIEXPORT tc_matrix tc_getParametersAndFixedVariables(tc_items a); 00050 TCAPIEXPORT const char* tc_getTextAttribute(long item,const char* attribute); 00058 TCAPIEXPORT double tc_getParameter(long item, const char* attribute); 00066 TCAPIEXPORT tc_matrix tc_getParametersNamed(tc_items a,tc_strings attibutes); 00074 TCAPIEXPORT tc_matrix tc_getParametersExcept(tc_items a,tc_strings attributes); 00082 TCAPIEXPORT tc_strings tc_getAllTextNamed(tc_items a,tc_strings attributes); 00089 TCAPIEXPORT void tc_setTextAttribute(long item,const char* attribute,const char* value); 00096 TCAPIEXPORT void tc_setParameter(long item, const char* attribute,double value); 00103 TCAPIEXPORT void tc_setTextAttributeByName(const char* attribute,const char* value); 00110 TCAPIEXPORT void tc_setParameterByName(const char* attribute,double value); 00116 TCAPIEXPORT void tc_setTextAttributes(tc_table); 00123 TCAPIEXPORT void tc_setParameters(tc_matrix parameters, int permanentOrTemporary); 00128 TCAPIEXPORT void tc_BasicInformationTool_Text_api( 00129 const char* (*getTextData)(long ,const char* ), 00130 tc_strings (*getAllTextDataNamed)(tc_items,tc_strings), 00131 void (*setTextData)(long ,const char* ,const char* )); 00132 00133 TCAPIEXPORT void tc_BasicInformationTool_Numeric_api( 00134 tc_matrix (*getInitialValues)(tc_items ), 00135 void (*setInitialValues)(tc_items,tc_matrix), 00136 tc_matrix (*getParameters)(tc_items ), 00137 tc_matrix (*getFixedVariabes)(tc_items), 00138 tc_matrix (*getParametersAndFixedVariabes)(tc_items ), 00139 double (*getNumericalData)(long ,const char* ), 00140 tc_matrix (*getParametersNamed)(tc_items,tc_strings), 00141 tc_matrix (*getParametersExcept)(tc_items,tc_strings), 00142 void (*setNumericalData)(long ,const char* ,double ) 00143 ); 00144 00145 END_C_DECLS 00146 #endif 00147