A simple command-line program that reads an SBML file and prints some statistics about it.
A simple command-line program that reads an SBML file and prints some statistics about it.
#include <stdio.h>
int
main (int argc, char *argv[])
{
const char *filename;
#ifdef __BORLANDC__
unsigned long start, stop, size;
#else
unsigned long long start, stop, size;
#endif
unsigned int errors;
if (argc != 2)
{
printf("Usage: readSBML filename\n");
return 2;
}
filename = argv[1];
start = getCurrentMillis();
stop = getCurrentMillis();
size = getFileSize(filename);
printf( "\n" );
printf( " filename: %s\n" , filename );
printf( " file size: %llu\n", size );
printf( " read time (ms): %llu\n", stop - start );
printf( " error(s): %u\n" , errors );
printf("\n");
return errors;
}
void SBMLDocument_printErrors(SBMLDocument_t *d, FILE *stream)
_tPrints_t _tto_t _tthe_t _tgiven_t _toutput_t _tstream_t _tall_t _tthe_t _terrors_t _tor_t _twarning...
Definition SBMLDocument.cpp:2525
unsigned int SBMLDocument_getNumErrors(const SBMLDocument_t *d)
_tReturns_t _tthe_t _tnumber_t _tof_t _terrors_t _tor_t _twarnings_t _tencountered_t _tduring_t _tpar...
Definition SBMLDocument.cpp:2510
void SBMLDocument_free(SBMLDocument_t *d)
_tFrees_t _tthe_t _tgiven_t _tSBMLDocument_t_t _tstructure_t.
Definition SBMLDocument.cpp:2248
SBMLDocument_t * readSBML(const char *filename)
@_tcopydoc_t _tdoc_readsbmlfromfile_t
Definition SBMLReader.cpp:446
Include all SBML types in a single header file.