Loads an SBML File and inlines all the function definitions found in the model.
#include <iostream>
int
main (int argc, char *argv[])
{
if (argc != 3)
{
cout
<< endl
<< "Usage: inlineFunctionDefintions input-filename output-filename" << endl
<< endl
<< "This program will attempt to inline all function definitions" << endl
<< "contained in the source model, and write a new SBML file."
<< endl
<< endl;
return 1;
}
const char* inputFile = argv[1];
const char* outputFile = argv[2];
if (errors > 0)
{
cerr << "Encountered the following SBML errors:" << endl;
cerr << "Conversion skipped. Please correct the problems above first."
<< endl;
return errors;
}
props.
addOption(
"expandFunctionDefinitions",
true,
"Expand all function definitions in the model");
int success = document->
convert(props);
{
cerr << "Unable to perform conversion due to the following:" << endl;
return errors;
}
else
{
cout << "Conversion completed." << endl;
}
return 0;
}