37#include "commonGlobal.h"
118 return (*
this += rhs);
145 return m_retValue == rhs;
154 return !(m_retValue == rhs);
157 void appendRetMessage(
const char* addRetMessage);
180 return m_retMessage.
size() > 0;
191 inline const char* errorMessage()
const
193 return m_retMessage.
data();
205 static RetVal format(
ito::tRetValue retValue,
int retCode,
const char* pRetMessage, ...);
This is a Qt-free class for byte arrays (strings) without specific encoding information.
Definition byteArray.h:65
int size() const
Definition byteArray.h:138
const char * data() const
return the pointer to the internal character array. If it is empty, the returned pointer still points...
Definition byteArray.h:144
Class for managing status values (like errors or warning)
Definition retVal.h:54
RetVal operator+(const RetVal &rhs)
Definition retVal.h:116
char operator==(const tRetValue rhs) const
Definition retVal.h:143
int m_retCode
Definition retVal.h:60
RetVal(int retValue)
Definition retVal.h:79
int containsError() const
Definition retVal.h:166
char operator==(const RetVal &rhs) const
Definition retVal.h:125
bool hasErrorMessage() const
Definition retVal.h:178
char operator!=(const RetVal &rhs) const
Definition retVal.h:134
tRetValue m_retValue
Definition retVal.h:57
int errorCode() const
Definition retVal.h:184
RetVal()
default constructor that creates a RetVal with status ito::retOk, code 0 and no message.
Definition retVal.h:67
int containsWarning() const
Definition retVal.h:160
~RetVal()
destructor
Definition retVal.h:94
int containsWarningOrError() const
Definition retVal.h:172
RetVal(tRetValue retValue)
Definition retVal.h:73
char operator!=(const tRetValue rhs) const
Definition retVal.h:152
Definition apiFunctionsGraph.cpp:40
tRetValue
Definition typeDefs.h:57
@ retError
Definition typeDefs.h:60
@ retOk
Definition typeDefs.h:58
@ retWarning
Definition typeDefs.h:59