Class for error value management.
The RetVal class is used for handling return codes. All classes should use this class. In case an error occurs, only the first error is stored and will not be overridden by potentially subsequent occurring errors.
Public FunctionsPublic Static FunctonsRetVal()RetVal(tRetValue retValue)RetVal(int retValue)RetVal(ito::tRetValue retValue, int retCode, const char * pRetMessage)~RetVal()
assignment operator, copies values of rhs to current RetVal. Before copiing current errorMessage is freed
Concatenation of RetVal “Adds” RetVals, i.e. returns the most serious error. In case of equally serious errors the first is retained
Concatenation of RetVal See operator RetVal::operator+=
char operator==(const RetVal & rhs)equality operator compares retValue with with retValue of rhs RetVal. For possible constant values see tRetValue
char operator!=(const RetVal & rhs)unequality operator compares retValue with with retValue of rhs RetVal. For possible constant values see tRetValue
char operator==(const tRetValue rhs)equality operator compares retValue with tRetValue constant. For possible constant values see tRetValue
char operator!=(const tRetValue rhs)unequality operator compares retValue with tRetValue constant. For possible constant values see tRetValue
void appendRetMessage(const char * addRetMessage)int containsWarning()checks if any warning has occurred in this return value (true), else (false)
int containsError()checks if any error has occurred in this return value (true), else (false)
int containsWarningOrError()checks if any warning or error has occurred in this return value (true), else (false)
int containsWarning()checks if any warning has occurred in this return value (true), else (false)
int containsError()checks if any error has occurred in this return value (true), else (false)
int containsWarningOrError()checks if any warning or error has occurred in this return value (true), else (false)
bool hasErrorMessage()const char * errorMessage()returns zero-terminated error message or empty, zero-terminated string if no error message has been set
int errorCode()const char * errorMessage()returns zero-terminated error message or empty, zero-terminated string if no error message has been set