Validates one or more SBML files.
Validates one or more SBML files.
#include <stdio.h>
int
main (int argc, char *argv[])
{
const char *filename;
#ifdef __BORLANDC__
unsigned long start, stop;
#else
unsigned long long start, stop;
#endif
unsigned long size;
unsigned int errors = 0;
if (argc != 2)
{
printf("Usage: validateSBML filename\n");
return 2;
}
filename = argv[1];
start = getCurrentMillis();
stop = getCurrentMillis();
size = getFileSize(filename);
printf( "\n" );
printf( " filename: %s\n" , filename );
printf( " file size: %lu\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
unsigned int SBMLDocument_checkConsistency(SBMLDocument_t *d)
_tPerforms_t _ta_t _tset_t _tof_t _tconsistency_t _tand_t _tvalidation_t _tchecks_t _ton_t _tthe_t _t...
Definition SBMLDocument.cpp:2401
SBMLDocument_t * readSBML(const char *filename)
@_tcopydoc_t _tdoc_readsbmlfromfile_t
Definition SBMLReader.cpp:446
Include all SBML types in a single header file.