Entry point for libSBML's implementation of SBML validation.
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.
Public Member Functions | |
| void | addConstraint (VConstraint *c) |
| Adds the given Contraint to this validator. | |
| void | clearFailures () |
| Clears the Validator's list of failures. | |
| const unsigned int | getCategory () const |
| Get the category of validation rules covered by this validator. | |
| const std::list< SBMLError > & | getFailures () const |
| Get the list of SBMLError objects (if any) logged as a result of running the validator. | |
| virtual void | init ()=0 |
| Initializes this Validator with a set of Constraints. | |
| void | logFailure (const SBMLError &msg) |
| Adds the given failure to this list of Validators failures. | |
| unsigned int | validate (const SBMLDocument &d) |
| Validates the given SBMLDocument. | |
| unsigned int | validate (const std::string &filename) |
| Validates the given SBMLDocument. | |
| Validator (SBMLErrorCategory_t category=LIBSBML_CAT_SBML) | |
| virtual | ~Validator () |
| Validator::Validator | ( | SBMLErrorCategory_t | category = LIBSBML_CAT_SBML | ) |
| Validator::~Validator | ( | ) | [virtual] |
| void Validator::addConstraint | ( | VConstraint * | c | ) |
Adds the given Contraint to this validator.
| void Validator::clearFailures | ( | ) |
| const unsigned int Validator::getCategory | ( | ) | const |
Get the category of validation rules covered by this validator.
The category values are drawn from the enumeration SBMLErrorCategory_t. See the documentation for the class SBMLError for more information.
| const std::list< SBMLError > & Validator::getFailures | ( | ) | const |
Get the list of SBMLError objects (if any) logged as a result of running the validator.
| virtual void Validator::init | ( | ) | [pure virtual] |
| void Validator::logFailure | ( | const SBMLError & | msg | ) |
Adds the given failure to this list of Validators failures.
| unsigned int Validator::validate | ( | const SBMLDocument & | d | ) |
Validates the given SBMLDocument.
Failures logged during validation may be retrieved via getFailures().
| unsigned int Validator::validate | ( | const std::string & | filename | ) |
Validates the given SBMLDocument.
Failures logged during validation may be retrieved via getFailures().