#include <JobErrors.hpp>
Public Member Functions | |
void | addError (ErrorType t_et, const std::string &t_value) |
std::vector< std::string > | errors () const |
std::vector< std::string > | errorsByType (const ErrorType &t_et) const |
std::vector< std::pair< int, std::string > > | errorsByTypeWithCount (const ErrorType &t_et) const |
std::vector< std::string > | finalConditions () const |
std::vector< std::string > | infos () const |
std::vector< std::string > | initialConditions () const |
JobErrors () | |
Default constructor Defaults to succeeded = false. More... | |
JobErrors (openstudio::ruleset::OSResultValue t_result, const std::vector< std::pair< ErrorType, std::string > > &t_errors) | |
Constructor. More... | |
JobErrors | operator+ (const JobErrors &t_rhs) const |
Add a JobErrors object to this one. More... | |
bool | operator== (const JobErrors &t_rhs) const |
bool | succeeded () const |
int | totalCountByType (const ErrorType &t_et) const |
std::vector< std::string > | warnings () const |
Public Attributes | |
std::vector< std::pair < ErrorType, std::string > > | allErrors |
unsigned | numNAs |
openstudio::ruleset::OSResultValue | result |
Holds a vector of errors and warnings descriptions generated during a job execution plus a flag indicating if the job could be considered a success regardless of errors.
|
inline |
Default constructor Defaults to succeeded = false.
|
inline |
Constructor.
[in] | t_result | Set to true if the job was considered a success regardless of errors generated |
[in] | t_errors | The vector of error description strings to set |
|
inline |
|
inline |
|
inline |
std::vector<std::pair<int, std::string> > openstudio::runmanager::JobErrors::errorsByTypeWithCount | ( | const ErrorType & | t_et | ) | const |
|
inline |
|
inline |
|
inline |
Add a JobErrors object to this one.
[in] | t_rhs | Right hand side of operation |
bool openstudio::runmanager::JobErrors::operator== | ( | const JobErrors & | t_rhs | ) | const |
|
inline |
int openstudio::runmanager::JobErrors::totalCountByType | ( | const ErrorType & | t_et | ) | const |
|
inline |
std::vector<std::pair<ErrorType, std::string> > openstudio::runmanager::JobErrors::allErrors |
unsigned openstudio::runmanager::JobErrors::numNAs |
openstudio::ruleset::OSResultValue openstudio::runmanager::JobErrors::result |