A result returns an error code and behaves like a boolean.  
 More...
#include <result.h>
|  | 
| static const int32_t | SUCCESS = 0 | 
|  | 
A result returns an error code and behaves like a boolean. 
Definition at line 31 of file result.h.
  
  | 
        
          | servus::Result::Result | ( | const int32_t | code | ) |  |  | inlineexplicit | 
 
Construct a new result. 
Definition at line 40 of file result.h.
 
 
  
  | 
        
          | virtual servus::Result::~Result | ( |  | ) |  |  | inlinevirtual | 
 
 
  
  | 
        
          | int32_t servus::Result::getCode | ( |  | ) | const |  | inline | 
 
- Returns
- the result code. 
Definition at line 58 of file result.h.
 
 
  
  | 
        
          | virtual std::string servus::Result::getString | ( |  | ) | const |  | inlinevirtual | 
 
 
  
  | 
        
          | servus::Result::operator bool_t | ( |  | ) | const |  | inline | 
 
- Returns
- true if no error occured, false otherwise. 
Definition at line 46 of file result.h.
 
 
  
  | 
        
          | bool servus::Result::operator! | ( |  | ) | const |  | inline | 
 
- Returns
- true if an error occured, false otherwise. 
Definition at line 49 of file result.h.
 
 
- Returns
- true if the result is not equal to the rhs. 
Definition at line 55 of file result.h.
 
 
  
  | 
        
          | bool servus::Result::operator== | ( | const int32_t | code | ) | const |  | inline | 
 
- Returns
- true if the result is equal to the given value. 
Definition at line 52 of file result.h.
 
 
The documentation for this class was generated from the following file: