50 |
|
|
51 |
typedef std::string String; |
typedef std::string String; |
52 |
|
|
53 |
|
/** |
54 |
|
* Wether a function / method call was successful, or if warnings or even an |
55 |
|
* error occured. |
56 |
|
*/ |
57 |
|
enum result_type_t { |
58 |
|
result_type_success, |
59 |
|
result_type_warning, |
60 |
|
result_type_error |
61 |
|
}; |
62 |
|
|
63 |
|
/** |
64 |
|
* Used whenever a detailed description of the result of a function / method |
65 |
|
* call is needed. |
66 |
|
*/ |
67 |
|
struct result_t { |
68 |
|
result_type_t type; ///< success, warning or error |
69 |
|
int code; ///< warning or error code |
70 |
|
String message; ///< detailed warning or error message |
71 |
|
}; |
72 |
|
|
73 |
#endif // __GLOBAL_H__ |
#endif // __GLOBAL_H__ |