#include <status.h>
Public Types | |
| enum | StatusCode { success, warning, failure, invalid_parameter } |
| The available status codes. More... | |
Public Member Functions | |
| Status () | |
| Default class constructor. Sets the status code to success. | |
| Status (StatusCode status_code) | |
| Status (const Status &status) | |
| Status & | operator= (const Status &s) |
| bool | operator== (const Status &s) const |
| bool | operator== (const StatusCode s) const |
| bool | operator!= (const Status &s) const |
| bool | operator!= (const StatusCode s) const |
| bool | Error () const |
| std::string | ErrorString () const |
| Returns the error string. | |
| void | SetSuccess () |
| Sets the status code to Status::success. | |
| void | Set (StatusCode status_code, std::string error_string="") |
| ScEng::Status::Status | ( | StatusCode | status_code | ) |
Class constructor that initializes the status_code.
| status_code | the initial status code. |
| ScEng::Status::Status | ( | const Status & | status | ) |
The copy constructor of the class
| status | The status to be copied |
The copy operator of the class
| s | The status to be copied |
| bool ScEng::Status::operator== | ( | const Status & | s | ) | const [inline] |
Equal operator.
| s | the reference status |
false the two status objects are not equal
| bool ScEng::Status::operator== | ( | const StatusCode | s | ) | const [inline] |
Equal operator.
| s | the reference status code |
false the status code of the object is not equal to the given status code
| bool ScEng::Status::operator!= | ( | const Status & | s | ) | const [inline] |
Not equal operator.
| s | the reference status |
false the two status objects are equal
| bool ScEng::Status::operator!= | ( | const StatusCode | s | ) | const [inline] |
Equal operator.
| s | the reference status code |
false the status code of the object is equal to the given status code
| bool ScEng::Status::Error | ( | ) | const [inline] |
Returns true if there is an error.
false if an error didn't occurred.
| void ScEng::Status::Set | ( | StatusCode | status_code, | |
| std::string | error_string = "" | |||
| ) |
Sets the status
| status_code | the new status code for the object | |
| error_string | the new error string for the object |
1.5.1-p1