Skip to content
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
1 change: 1 addition & 0 deletions src/sbml/SBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2362,6 +2362,7 @@ SBase::setModelHistory(ModelHistory * history)
{
delete mHistory;
mHistory = static_cast<ModelHistory*>(history->clone());
mHistory->setParentSBMLObject(this);
mHistoryChanged = true;
status = LIBSBML_OPERATION_SUCCESS;
}
Expand Down
4 changes: 0 additions & 4 deletions src/sbml/annotation/ModelHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,6 @@ ModelHistory::resetModifiedFlags()
}
/** @endcond */

/** @cond doxygenLibsbmlInternal */

const SBase *
ModelHistory::getParentSBMLObject() const
{
Expand Down Expand Up @@ -516,8 +514,6 @@ ModelHistory::unsetParentSBMLObject()
return LIBSBML_OPERATION_SUCCESS;
}

/** @endcond */


#endif /* __cplusplus */

Expand Down
24 changes: 18 additions & 6 deletions src/sbml/annotation/ModelHistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,29 @@ class LIBSBML_EXTERN ModelHistory

/** @endcond */


protected:
/** @cond doxygenLibsbmlInternal */

// record the SBML Object on which this ModelHistory is set

/**
* Return the parent object of this ModelHistory.
*/
const SBase * getParentSBMLObject() const;

/**
* Returns whether the parent object of this ModelHistory has been set (true), or is NULL (false).
*/
bool isSetParentSBMLObject() const;

/**
* Sets the parent object of this ModelHistory.
*/
void setParentSBMLObject(const SBase * sb);

/**
* Sets the parent object of this ModelHistory to NULL.
*/
int unsetParentSBMLObject();

protected:
/** @cond doxygenLibsbmlInternal */

friend class RDFAnnotationParser;
friend class SBase;

Expand Down
Loading