Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add FbcReactionPlugin_createGeneProductAssociation to C API #247

Merged
merged 1 commit into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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