
Public Member Functions | |
| virtual void | clearFailures () |
| Clears the Validator's list of failures. | |
| virtual SBMLValidator * | clone () const |
| Creates and returns a deep copy of this SBMLConverter. | |
| virtual SBMLDocument * | getDocument () |
| virtual const SBMLDocument * | getDocument () const |
| SBMLErrorLog * | getErrorLog () |
| Returns the list of errors or warnings logged during parsing, consistency checking, or attempted translation of this model. | |
| SBMLError * | getFailure (unsigned int n) const |
| Returns the failure at the given index. | |
| const std::vector< SBMLError > & | getFailures () const |
| Get the list of SBMLError objects (if any) logged as a result of running the validator. | |
| const Model * | getModel () const |
| Returns the Model object stored in the SBMLDocument. | |
| Model * | getModel () |
| Returns the Model object stored in the SBMLDocument. | |
| unsigned int | getNumFailures () const |
| Returns the local number of failures. | |
| void | logFailure (const SBMLError &msg) |
| Adds the given failure to this list of Validators failures. | |
| SBMLValidator & | operator= (const SBMLValidator &) |
| Assignment operator for SBMLConverter. | |
| SBMLValidator () | |
| Constructor. | |
| SBMLValidator (const SBMLValidator &) | |
| Copy constructor. | |
| virtual int | setDocument (const SBMLDocument *doc) |
| Sets the current SBML document. | |
| virtual unsigned int | validate () |
| the actual validation code | |
| unsigned int | validate (const SBMLDocument &d) |
| Validates the given SBMLDocument. | |
| unsigned int | validate (const std::string &filename) |
| Validates the given SBMLDocument. | |
| virtual | ~SBMLValidator () |
| Destroy this object. | |
Constructor.
| SBMLValidator::SBMLValidator | ( | const SBMLValidator & | orig | ) |
Copy constructor.
| SBMLValidator::~SBMLValidator | ( | ) | [virtual] |
Destroy this object.
| void SBMLValidator::clearFailures | ( | ) | [virtual] |
| SBMLValidator * SBMLValidator::clone | ( | ) | const [virtual] |
Creates and returns a deep copy of this SBMLConverter.
Reimplemented in SBMLInternalValidator.
| SBMLDocument * SBMLValidator::getDocument | ( | ) | [virtual] |
| const SBMLDocument * SBMLValidator::getDocument | ( | ) | const [virtual] |
Returns the list of errors or warnings logged during parsing, consistency checking, or attempted translation of this model.
| SBMLError * SBMLValidator::getFailure | ( | unsigned int | n | ) | const |
Returns the failure at the given index.
| n | the zero based index of failures |
| const std::vector< SBMLError > & SBMLValidator::getFailures | ( | ) | const |
Get the list of SBMLError objects (if any) logged as a result of running the validator.
| const Model * SBMLValidator::getModel | ( | ) | const |
Returns the Model object stored in the SBMLDocument.
It is important to note that this method does not create a Model instance. The model in the SBMLDocument must have been created at some prior time, for example using SBMLDocument::createModel() or SBMLDocument::setModel(). This method returns NULL if a model does not yet exist.
| Model * SBMLValidator::getModel | ( | ) |
Returns the Model object stored in the SBMLDocument.
It is important to note that this method does not create a Model instance. The model in the SBMLDocument must have been created at some prior time, for example using SBMLDocument::createModel() or SBMLDocument::setModel(). This method returns NULL if a model does not yet exist.
| unsigned int SBMLValidator::getNumFailures | ( | ) | const |
Returns the local number of failures.
This method returns the number of failures logged by this validator (that is it does not include the number of the documents error log).
| void SBMLValidator::logFailure | ( | const SBMLError & | msg | ) |
Adds the given failure to this list of Validators failures.
| SBMLValidator & SBMLValidator::operator= | ( | const SBMLValidator & | rhs | ) |
Assignment operator for SBMLConverter.
| int SBMLValidator::setDocument | ( | const SBMLDocument * | doc | ) | [virtual] |
Sets the current SBML document.
| doc | the document to use for this validation |
| unsigned int SBMLValidator::validate | ( | ) | [virtual] |
the actual validation code
Reimplemented in SBMLInternalValidator.
| unsigned int SBMLValidator::validate | ( | const SBMLDocument & | d | ) |
Validates the given SBMLDocument.
Failures logged during validation may be retrieved via getFailures().
| unsigned int SBMLValidator::validate | ( | const std::string & | filename | ) |
Validates the given SBMLDocument.
Failures logged during validation may be retrieved via getFailures().