Skip to content

Commit

Permalink
Merge pull request #247 from exaexa/mk-fbc-gpa
Browse files Browse the repository at this point in the history
add `FbcReactionPlugin_createGeneProductAssociation` to C API
  • Loading branch information
fbergmann committed Jul 15, 2022
2 parents 41358d5 + 3463655 commit 40c0e0c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sbml/packages/fbc/extension/FbcReactionPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,13 @@ FbcReactionPlugin::accept(SBMLVisitor& v) const
#endif /* __cplusplus */


LIBSBML_EXTERN
GeneProductAssociation_t *
FbcReactionPlugin_createGeneProductAssociation(FbcSBasePlugin_t * fbc)
{
return (fbc != NULL) ? static_cast<FbcReactionPlugin*>(fbc)->createGeneProductAssociation() : NULL;
}

LIBSBML_EXTERN
char *
FbcReactionPlugin_getUpperFluxBound(FbcSBasePlugin_t * fbc)
Expand Down
14 changes: 14 additions & 0 deletions src/sbml/packages/fbc/extension/FbcReactionPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,20 @@ BEGIN_C_DECLS



/**
* Creates a new GeneProductAssociation_t object and adds it to the FbcReactionPlugin_t object.
*
* @param fbc the FbcReactionPlugin_t that should have the GeneProductAssociation_t added
*
* @copydetails doc_note_geneproduct_v2_only
*
* @return pointer to the newly created GeneProductAssociation_t object.
*/
LIBSBML_EXTERN
GeneProductAssociation_t*
FbcReactionPlugin_createGeneProductAssociation(FbcSBasePlugin_t * fbc);


/**
* Takes a FbcReactionPlugin_t structure and returns its "upperFluxBound" attribute.
*
Expand Down

0 comments on commit 40c0e0c

Please sign in to comment.