OpenASIP
2.0
|
#include <ProgrammabilityValidatorResults.hh>
Public Types | |
typedef std::pair< ProgrammabilityValidator::ErrorCode, std::string > | Error |
Typedef for an error (error code + error message). More... | |
Public Member Functions | |
ProgrammabilityValidatorResults () | |
virtual | ~ProgrammabilityValidatorResults () |
int | errorCount () const |
Error | error (int index) const |
void | addError (ProgrammabilityValidator::ErrorCode code, const std::string &errorMsg) |
Private Types | |
typedef std::vector< Error > | ErrorTable |
Typedef for vector of errors. More... | |
Private Attributes | |
ErrorTable | errors_ |
Contains the errors. More... | |
This class bundles up the results of ProgrammabilityValidator.
Definition at line 46 of file ProgrammabilityValidatorResults.hh.
typedef std::pair<ProgrammabilityValidator::ErrorCode, std::string> ProgrammabilityValidatorResults::Error |
Typedef for an error (error code + error message).
Definition at line 50 of file ProgrammabilityValidatorResults.hh.
|
private |
Typedef for vector of errors.
Definition at line 64 of file ProgrammabilityValidatorResults.hh.
ProgrammabilityValidatorResults::ProgrammabilityValidatorResults | ( | ) |
|
virtual |
void ProgrammabilityValidatorResults::addError | ( | ProgrammabilityValidator::ErrorCode | code, |
const std::string & | errorMsg | ||
) |
Adds an error to the results.
code | The error code. |
errorMsg | The error message. |
Definition at line 85 of file ProgrammabilityValidatorResults.cc.
References error(), and errors_.
Referenced by ProgrammabilityValidator::checkBooleanRegister(), ProgrammabilityValidator::checkPrimitiveSet(), ProgrammabilityValidator::profile(), and ProgrammabilityValidator::validate().
ProgrammabilityValidatorResults::Error ProgrammabilityValidatorResults::error | ( | int | index | ) | const |
Returns an error by the given index.
index | The index. |
OutOfRange | If the given index is negative or not smaller than the number of errors. |
Definition at line 70 of file ProgrammabilityValidatorResults.cc.
References __func__, errorCount(), and errors_.
Referenced by addError(), main(), and ValidateMachineDialog::onValidate().
int ProgrammabilityValidatorResults::errorCount | ( | ) | const |
Returns the number of errors.
Definition at line 56 of file ProgrammabilityValidatorResults.cc.
References errors_.
Referenced by error(), main(), and ValidateMachineDialog::onValidate().
|
private |
Contains the errors.
Definition at line 67 of file ProgrammabilityValidatorResults.hh.
Referenced by addError(), error(), and errorCount().