libSBML C++ API
libSBML 5.18.0 C++ API
|
Unsets the notes for each element in the given SBML file.
#include <iostream>
using namespace std;
int
main (int argc, char* argv[])
{
if (argc != 3)
{
cout << endl << "Usage: unsetNotes <input-filename> <output-filename>" << endl << endl;
return 1;
}
unsigned int i,j;
const char* filename = argv[1];
if(errors > 0)
{
delete document;
return errors;
}
{
{
}
{
}
{
}
{
{
}
}
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
{
}
}
{
}
{
}
delete document;
return errors;
}
const KineticLaw * getKineticLaw() const
Returns the KineticLaw object contained in this Reaction.
Definition: Reaction.cpp:395
@sbmlpackage{core}
Definition: SpeciesReference.h:276
unsigned int getNumInitialAssignments() const
Get the number of InitialAssignment objects in this Model.
Definition: Model.cpp:3274
unsigned int getNumParameters() const
Get the number of Parameter objects in this Model.
Definition: Model.cpp:3264
const FunctionDefinition * getFunctionDefinition(unsigned int n) const
Get the nth FunctionDefinitions object in this Model.
Definition: Model.cpp:2466
@sbmlpackage{core}
Definition: Parameter.h:197
const EventAssignment * getEventAssignment(unsigned int n) const
Return a specific EventAssignment object of this Event.
Definition: Event.cpp:1055
const Parameter * getParameter(unsigned int n) const
Get the nth Parameter object in this Model.
Definition: Model.cpp:2718
@sbmlpackage{core}
Definition: Reaction.h:219
int unsetNotes()
Unsets the value of the "notes" subelement of this SBML object.
Definition: SBase.cpp:2612
@sbmlpackage{core}
Definition: Constraint.h:153
const Species * getSpecies(unsigned int n) const
Get the nth Species object in this Model.
Definition: Model.cpp:2676
@sbmlpackage{core}
Definition: KineticLaw.h:198
Include all SBML types in a single header file.
@sbmlpackage{core}
Definition: UnitDefinition.h:277
unsigned int getNumConstraints() const
Get the number of Constraint objects in this Model.
Definition: Model.cpp:3294
const Parameter * getParameter(unsigned int n) const
Returns the nth Parameter object in the list of parameters in this KineticLaw instance.
Definition: KineticLaw.cpp:732
unsigned int getNumSpeciesTypes() const
Get the number of SpeciesType objects in this Model.
Definition: Model.cpp:3215
const Reaction * getReaction(unsigned int n) const
Get the nth Reaction object in this Model.
Definition: Model.cpp:3037
unsigned int getNumReactants() const
Returns the number of reactant species in this Reaction.
Definition: Reaction.cpp:1264
SBMLDocument * readSBML(const std::string &filename)
Reads an SBML document from the given file.
Definition: SBMLReader.cpp:107
bool isSetKineticLaw() const
Predicate returning true if this Reaction contains a kinetic law object.
Definition: Reaction.cpp:469
unsigned int getNumReactions() const
Get the number of Reaction objects in this Model.
Definition: Model.cpp:3304
const InitialAssignment * getInitialAssignment(unsigned int n) const
Get the nth InitialAssignment object in this Model.
Definition: Model.cpp:2760
@sbmlpackage{core}
Definition: Event.h:350
@sbmlpackage{core}
Definition: FunctionDefinition.h:145
unsigned int getNumModifiers() const
Returns the number of modifier species in this Reaction.
Definition: Reaction.cpp:1285
const Compartment * getCompartment(unsigned int n) const
Get the nth Compartment object in this Model.
Definition: Model.cpp:2634
@sbmlpackage{core}
Definition: SBMLReader.h:338
unsigned int getNumParameters() const
Returns the number of parameters in this KineticLaw instance.
Definition: KineticLaw.cpp:829
@sbmlpackage{core}
Definition: Compartment.h:485
unsigned int getNumEvents() const
Get the number of Event objects in this Model.
Definition: Model.cpp:3314
unsigned int getNumUnitDefinitions() const
Get the number of UnitDefinition objects in this Model.
Definition: Model.cpp:3195
unsigned int getNumErrors() const
Returns the number of errors or warnings encountered during parsing, consistency checking,...
Definition: SBMLDocument.cpp:1184
const Constraint * getConstraint(unsigned int n) const
Get the nth Constraint object in this Model.
Definition: Model.cpp:3017
const Model * getModel() const
Returns the Model object stored in this SBMLDocument.
Definition: SBMLDocument.cpp:361
@sbmlpackage{core}
Definition: InitialAssignment.h:284
@sbmlpackage{core}
Definition: EventAssignment.h:291
@sbmlpackage{core}
Definition: Model.h:480
@sbmlpackage{core}
Definition: SpeciesType.h:104
unsigned int getNumRules() const
Get the number of Rule objects in this Model.
Definition: Model.cpp:3284
unsigned int getNumProducts() const
Returns the number of product species in this Reaction.
Definition: Reaction.cpp:1274
const ModifierSpeciesReference * getModifier(unsigned int n) const
Returns the nth modifier species (as a ModifierSpeciesReference object) in the list of modifiers of t...
Definition: Reaction.cpp:1216
void printErrors(std::ostream &stream=std::cerr) const
Prints all the errors or warnings encountered trying to parse, check, or translate this SBML document...
Definition: SBMLDocument.cpp:1207
const SpeciesType * getSpeciesType(unsigned int n) const
Get the nth SpeciesType object in this Model.
Definition: Model.cpp:2592
unsigned int getNumFunctionDefinitions() const
Get the number of FunctionDefinition objects in this Model.
Definition: Model.cpp:3185
const SpeciesReference * getReactant(unsigned int n) const
Returns the nth reactant species (as a SpeciesReference object) in the list of reactants in this Reac...
Definition: Reaction.cpp:1130
unsigned int getNumSpecies() const
Get the number of Species objects in this Model.
Definition: Model.cpp:3235
const Event * getEvent(unsigned int n) const
Get the nth Event object in this Model.
Definition: Model.cpp:3143
@sbmlpackage{core}
Definition: Rule.h:158
const UnitDefinition * getUnitDefinition(unsigned int n) const
Get the nth UnitDefinition object in this Model.
Definition: Model.cpp:2508
unsigned int getNumEventAssignments() const
Returns the number of EventAssignment objects attached to this Event.
Definition: Event.cpp:1097
unsigned int getNumCompartments() const
Get the number of Compartment objects in this Model.
Definition: Model.cpp:3225
@sbmlpackage{core}
Definition: Species.h:424
const Rule * getRule(unsigned int n) const
Get the nth Rule object in this Model.
Definition: Model.cpp:2826
#define LIBSBML_CPP_NAMESPACE_USE
Definition: libsbml-namespace.h:67
const SpeciesReference * getProduct(unsigned int n) const
Returns the nth product species (as a SpeciesReference object) in the list of products in this Reacti...
Definition: Reaction.cpp:1173
@sbmlpackage{core}
Definition: SBMLDocument.h:343
int writeSBML(const SBMLDocument_t *d, const char *filename)
Writes the given SBML document d to the file named by filename.
@sbmlpackage{core}
Definition: ModifierSpeciesReference.h:87