sbml2matlab  1.01
SBML to MATLAB translator
 All Classes Files Functions
Defines | Functions
sbml2matlab.h File Reference

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 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

SBML-to-MATLAB translator.

Author:
Stanley Gu stanl.nosp@m.eygu.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date:
Februrary 16, 2012

Function Documentation

DLL_EXPORT char* getNomErrors ( )

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]indexThe index^th error in the list
[out]lineThe line number in the SBML file that corresponds to the error
[out]columnThe column number in the SBML file that corresponds to the error
[out]errorIdThe SBML errorId (see libSBML for details);
[out]errorTypeThe error type includes "Advisory", "Warning", "Fatal", "Error", and "Warning"
[out]errorMsgThe error message associated with the error
Returns:
-1 if there has been an error
DLL_EXPORT int getNumSbmlErrors ( )

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]sbmlInputThe SBML string to be translated
[in]matlabOutputPointer to the C string, with memory allocated by the caller, to assign the translated MATLAB function
Returns:
0 if translation was successful, -1 if not
DLL_EXPORT int validateSBMLString ( char *  cSBML)

Validates the given SBML model.

Returns:
-1 if the SBML model is invalid, else returns 0