A command-line program that prints information about the units of measurement used in a given SBML file.
#include <stdio.h>
#include <sbml/units/UnitFormulaFormatter.h>
#include <sbml/units/FormulaUnitsData.h>
int
main (int argc, char *argv[])
{
unsigned int i,j;
char* filename;
if (argc != 2)
{
printf("\nUsage: printUnits filename\n");
return 1;
}
filename = argv[1];
{
fprintf(stderr, "Encountered the following SBML errors:\n");
return 1;
}
if (model == NULL)
{
printf("No model present.\n");
return 1;
}
{
printf("Species %d: %s\n"
, i
);
}
{
printf("Compartment %d: %s\n"
, i
);
}
{
printf("Parameter %d: %s\n"
, i
);
}
{
printf("InitialAssignment %d: %s"
, i
);
printf(" undeclared units: %s",
}
{
printf("Event %d: \n", i);
{
printf( "Delay: %s\n",
printf( " undeclared units: %s",
}
{
printf( "Delay: %s\n",
printf( " undeclared units: %s",
}
}
{
printf("Reaction %d: \n", i);
{
printf( "Kinetic Law: %s\n",
printf( " undeclared units: %s",
}
{
{
printf( "Reactant stoichiometryMath %d: %s\n",
j,
printf( " undeclared units: %s",
}
}
{
{
printf( "Product stoichiometryMath %d: %s\n",
j,
printf( " undeclared units: %s",
}
}
}
{
printf( "Rule %d: %s\n",
j,
printf( " undeclared units: %s",
}
return 0;
}