Prints information about the top-level model in the given SBML file.
#include <iostream>
int
main (int argc, char* argv[])
{
if (argc != 2)
{
cout << endl << "Usage: printSBML filename" << endl << endl;
return 1;
}
const char* filename = argv[1];
{
cerr << "Encountered the following SBML errors:" << endl;
return 1;
}
unsigned int level = document->
getLevel ();
cout << endl
<< "File: " << filename
<< " (Level " << level << ", version " << version << ")" << endl;
if (model == 0)
{
cout << "No model present." << endl;
return 1;
}
cout << " "
<< (level == 1 ? "name: " : " id: ")
<< (model->
isSetId() ? model->
getId() : std::string(
"(empty)")) << endl;
cout <<
" model sboTerm: " << model->
getSBOTerm() << endl;
cout << endl;
delete document;
return 0;
}