OpenASIP
2.0
|
#include <POMValidatorResults.hh>
Public Types | |
typedef std::pair< POMValidator::ErrorCode, std::string > | Error |
Public Member Functions | |
POMValidatorResults () | |
virtual | ~POMValidatorResults () |
int | errorCount () const |
Error | error (int index) const |
void | addError (POMValidator::ErrorCode code, const std::string &errorMsg) |
Private Attributes | |
std::vector< Error > | errors_ |
Vector storing the errors. More... | |
Class for storing POMValidator results.
Definition at line 45 of file POMValidatorResults.hh.
typedef std::pair<POMValidator::ErrorCode, std::string> POMValidatorResults::Error |
Definition at line 47 of file POMValidatorResults.hh.
POMValidatorResults::POMValidatorResults | ( | ) |
|
virtual |
void POMValidatorResults::addError | ( | POMValidator::ErrorCode | code, |
const std::string & | errorMsg | ||
) |
Adds an error to the results.
code | The error code. |
errorMsg | The error message. |
Definition at line 84 of file POMValidatorResults.cc.
References error(), and errors_.
Referenced by POMValidator::checkCompiledSimulatability(), POMValidator::checkConnectivity(), POMValidator::checkLongImmediates(), and POMValidator::checkSimulatability().
POMValidatorResults::Error POMValidatorResults::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 69 of file POMValidatorResults.cc.
References __func__, errorCount(), and errors_.
Referenced by addError(), and SimulatorFrontend::loadProgram().
int POMValidatorResults::errorCount | ( | ) | const |
Returns the number of errors.
Definition at line 55 of file POMValidatorResults.cc.
References errors_.
Referenced by error(), and SimulatorFrontend::loadProgram().
|
private |
Vector storing the errors.
Definition at line 59 of file POMValidatorResults.hh.
Referenced by addError(), error(), and errorCount().