#include <Puma/ErrorSeverity.h>
Severity of errors represented by a short integer and a textual representation.
Following error severities are defined (in ascending order):
◆ ErrorSeverity() [1/2]
Puma::ErrorSeverity::ErrorSeverity |
( |
unsigned short | severity = 0, |
|
|
const char * | text = (const char*) 0 ) |
|
inline |
Constructor.
- Parameters
-
severity | The severity value. |
text | The textual representation. |
◆ ErrorSeverity() [2/2]
Copy-constructor.
- Parameters
-
copy | The error severity to copy. |
◆ operator!=()
int Puma::ErrorSeverity::operator!= |
( |
const ErrorSeverity & | other | ) |
const |
|
inline |
Check if this severity is not the same as the given.
- Parameters
-
other | The severity to compare with. |
- Returns
- 1 if true, 0 otherwise.
◆ operator<()
int Puma::ErrorSeverity::operator< |
( |
const ErrorSeverity & | other | ) |
const |
|
inline |
Check if this severity is lower than the given.
- Parameters
-
other | The severity to compare with. |
- Returns
- 1 if true, 0 otherwise.
◆ operator<=()
int Puma::ErrorSeverity::operator<= |
( |
const ErrorSeverity & | other | ) |
const |
|
inline |
Check if this severity is lower than or the same as the given.
- Parameters
-
other | The severity to compare with. |
- Returns
- 1 if true, 0 otherwise.
◆ operator=()
Assign another severity.
- Parameters
-
severity | The severity to assign. |
- Returns
- A reference to this.
◆ operator==()
int Puma::ErrorSeverity::operator== |
( |
const ErrorSeverity & | other | ) |
const |
|
inline |
Check if this severity is the same as the given.
- Parameters
-
other | The severity to compare with. |
- Returns
- 1 if true, 0 otherwise.
◆ operator>()
int Puma::ErrorSeverity::operator> |
( |
const ErrorSeverity & | other | ) |
const |
|
inline |
Check if this severity is higher than the given.
- Parameters
-
other | The severity to compare with. |
- Returns
- 1 if true, 0 otherwise.
◆ operator>=()
int Puma::ErrorSeverity::operator>= |
( |
const ErrorSeverity & | other | ) |
const |
|
inline |
Check if this severity is higher than or the same as the given.
- Parameters
-
other | The severity to compare with. |
- Returns
- 1 if true, 0 otherwise.
◆ text()
const char * Puma::ErrorSeverity::text |
( |
| ) |
const |
|
inline |
Get the textual representation of this severity.
- Returns
- The textual representation.