#include <oess_1/defs/h/declspec.hpp>
#include <iostream>
#include <string>
#include <oess_1/defs/h/types.hpp>
Пространства имен | |
| namespace | oess_1 |
Классы | |
| struct | err_code_t |
| Код ошибки с пояснениями. Подробнее... | |
Макросы | |
| #define | _OESS_1__DEFS__ERR_CODE_HPP_ |
| #define | oess_1_make_err(code, desc) oess_1::err_code_t(code, __FILE__, __LINE__, desc) |
| Создать и инициализировать анономный, временный объект err_code_t. | |
Функции | |
| oess_1::err_code_to_std_ostream (std::ostream &o, const err_code_t &c) | |
| Внутренняя функция ObjESSty. | |
| std::ostream & | oess_1::operator<< (std::ostream &o, const err_code_t &c) |
| Отображение объекта err_code_t в указанный поток вывода. | |
| #define oess_1_make_err | ( | code, | |||
| desc | ) | oess_1::err_code_t(code, __FILE__, __LINE__, desc) |
Создать и инициализировать анономный, временный объект err_code_t.
| code | Целочисленный код ошибки. | |
| desc | Выражение, дающее в результате const std::string & или const char *. |
oess_1::err_code_t some_func() { if( ... ) return oess_1_make_err( -1, "invalid argument" ); if( ... ) return oess_1_make_err( -2, std::string( "log" ) + ": file not found" ); }
1.4.7