Skip to content

Commit

Permalink
- sneak option past swig
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 27, 2024
1 parent 54ef979 commit 145c0e9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/sbml/SBMLDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,12 @@ SBMLDocument::checkConsistency ()
}


unsigned int
SBMLDocument::checkConsistencyWithStrictUnits ()
{
return checkConsistencyWithStrictUnits(LIBSBML_OVERRIDE_ERROR);
}

/*
* Performs a set of semantic consistency checks on the document. Query
* the results by calling getNumErrors() and getError().
Expand Down
22 changes: 21 additions & 1 deletion src/sbml/SBMLDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,28 @@ class LIBSBML_EXTERN SBMLDocument: public SBase
*
* @see SBMLDocument::checkInternalConsistency()
*/
unsigned int checkConsistencyWithStrictUnits (XMLErrorSeverityOverride_t strictErrorOverride = LIBSBML_OVERRIDE_ERROR );
unsigned int checkConsistencyWithStrictUnits ();

/**
* Performs consistency checking and validation on this SBML document
* using the ultra strict units validator that assumes that there
* are no hidden numerical conversion factors.
*
* If this method returns a nonzero value (meaning, one or more
* consistency checks have failed for SBML document), the failures may be
* due to warnings @em or errors. Callers should inspect the severity
* flag in the individual SBMLError objects returned by
* SBMLDocument::getError(@if java long@endif) to determine the nature of the failures.
*
* @param strictErrorOverride the severity of the error to use for strict units checking
* by default unit validations will be flagged as an error using this method. Use
* LIBSBML_OVERRIDE_WARNING to change this to a warning.
*
* @return the number of failed checks (errors) encountered.
*
* @see SBMLDocument::checkInternalConsistency()
*/
unsigned int checkConsistencyWithStrictUnits (XMLErrorSeverityOverride_t strictErrorOverride);

/**
* Performs consistency checking and validation on this SBML document.
Expand Down

0 comments on commit 145c0e9

Please sign in to comment.