SBML-to-MATLAB translator.
More...
Go to the source code of this file.
Functions |
DLL_EXPORT int | sbml2matlab (char *sbmlInput, char **matlabOutput) |
| translates SBML to the MATLAB function equivalent
|
DLL_EXPORT void | freeMatlabString (char *matlabInput) |
| Frees MATLAB fumction string from memory.
|
DLL_EXPORT char * | getNomErrors () |
| Returns the error message from NOM.
|
DLL_EXPORT int | getNumSbmlErrors () |
| Returns number of errors in SBML model.
|
DLL_EXPORT int | getNthSbmlError (int index, int *line, int *column, int *errorId, char **errorType, char **errorMsg) |
| Returns details on the index^th SBML error.
|
DLL_EXPORT int | validateSBMLString (char *cSBML) |
| Validates the given SBML model.
|
Detailed Description
Function Documentation
Frees MATLAB fumction string from memory.
- Parameters:
-
[in] | matlabInput | The MATLAB string to be cleared from memory |
Returns the error message from NOM.
- Returns:
- char* to the error message
DLL_EXPORT int getNthSbmlError |
( |
int |
index, |
|
|
int * |
line, |
|
|
int * |
column, |
|
|
int * |
errorId, |
|
|
char ** |
errorType, |
|
|
char ** |
errorMsg |
|
) |
| |
Returns details on the index^th SBML error.
- Parameters:
-
[in] | index | The index^th error in the list |
[out] | line | The line number in the SBML file that corresponds to the error |
[out] | column | The column number in the SBML file that corresponds to the error |
[out] | errorId | The SBML errorId (see libSBML for details); |
[out] | errorType | The error type includes "Advisory", "Warning", "Fatal", "Error", and "Warning" |
[out] | errorMsg | The error message associated with the error |
- Returns:
- -1 if there has been an error
Returns number of errors in SBML model.
- Returns:
- -1 if there has been an error, otherwise returns number of errors in SBML model
DLL_EXPORT int sbml2matlab |
( |
char * |
sbmlInput, |
|
|
char ** |
matlabOutput |
|
) |
| |
translates SBML to the MATLAB function equivalent
- Parameters:
-
[in] | sbmlInput | The SBML string to be translated |
[in] | matlabOutput | Pointer to the C string to assign the translated MATLAB function |
- Returns:
- 0 if translation was successful, -1 if not
Validates the given SBML model.
- Returns:
- -1 if the SBML model is invalid, else returns 0