Simple example of using the SBML graphical layout specification, in both Level 2 and Level 3.
#include <iostream>
#include <string>
#if (!defined LIBSBML_HAS_PACKAGE_LAYOUT)
#error "This example requires libSBML to be built with the layout extension."
#endif
int main(int argc, char** argv){
if (argc != 2)
{
cout << endl << "Usage: addLayout input-filename"
<< endl << endl;
return 2;
}
{
}
else
{
{
}
{
}
layout->
setId(
"Layout_1");
layout->setDimensions(&dim);
}
}