#include <stdio.h>
int
main (int argc, char *argv[])
{
int leavePorts = 0;
if (argc < 3 || argc > 4)
{
printf("Usage: flattenModel [-p] input-filename output-filename\n-p:list unused ports\n");
return 2;
}
if (argc == 3)
{
}
else
{
if (strcmp(argv[1], "-p") != 0)
{
printf("Usage: flattenModel [-p] input-filename output-filename\n-p:list unused ports\n");
return 2;
}
leavePorts = 1;
}
{
}
else
{
if (leavePorts == 1)
{
}
{
printf ("conversion failed ... ");
return 3;
}
if (argc == 4)
{
}
else
{
}
}
return 0;
}
@ CNV_TYPE_BOOL
Definition ConversionOption.h:146
ConversionOption_t * ConversionOption_create(const char *key)
_tCreates_t _ta_t _tnew_t _tConversionOption_t_t _twith_t _tthe_t _tgiven_t _tkey_t.
void ConversionOption_setDescription(ConversionOption_t *co, const char *description)
_tSets_t _tthe_t _tdescription_t _tfor_t _tthe_t _toption_t.
void ConversionOption_setValue(ConversionOption_t *co, const char *value)
_tSets_t _tthe_t _tvalue_t _tfor_t _tthe_t _toption_t.
void ConversionOption_setType(ConversionOption_t *co, ConversionOptionType_t type)
_tSets_t _tthe_t _ttype_t _tfor_t _tthe_t _toption_t.
Definition of ConversionProperties_t, the class encapsulating conversion configuration.
ConversionProperties_t * ConversionProperties_create()
_tCreates_t _ta_t _tnew_t _tconversion_t _tproperties_t _tstructure_t (_twithout_t _tnamespace_t)
void ConversionProperties_addOption(ConversionProperties_t *cp, const ConversionOption_t *option)
_tAdds_t _ta_t _tcopy_t _tof_t _tthe_t _tgiven_t _tConversionOption_t_t _tstructure_t _tto_t _tthe_t ...
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_getNumErrorsWithSeverity(const SBMLDocument_t *d, unsigned int severity)
_tReturns_t _tthe_t _tnumber_t _tof_t _terrors_t _tor_t _twarnings_t _tencountered_t _tduring_t _tpar...
Definition SBMLDocument.cpp:2517
int SBMLDocument_convert(SBMLDocument_t *d, const ConversionProperties_t *props)
_tConverts_t _tthis_t _tdocument_t _tusing_t _tthe_t _tconverter_t _tthat_t _tbest_t _tmatches_t _tth...
Definition SBMLDocument.cpp:2614
SBMLDocument_t * readSBML(const char *filename)
@_tcopydoc_t _tdoc_readsbmlfromfile_t
Definition SBMLReader.cpp:446
Include all SBML types in a single header file.
int writeSBML(const SBMLDocument_t *d, const char *filename)
_tWrites_t _tthe_t _tgiven_t _tSBML_t _tdocument_t @_tp_t _td_t _tto_t _tthe_t _tfile_t _tnamed_t _tb...
Definition SBMLWriter.cpp:440
@ LIBSBML_SEV_ERROR
Definition XMLError.h:534
@ LIBSBML_OPERATION_SUCCESS
Definition operationReturnValues.h:61