io.h File Reference
Go to the source code of this file.
Classes |
| class | CIO |
| | Class IO, used to do input output operations throughout shogun. More...
|
Defines |
| #define | NUM_LOG_LEVELS 9 |
| #define | FBUFSIZE 4096 |
| #define | CONST_DIRENT_T const struct dirent |
| #define | SG_DEBUG(...) io->message(M_DEBUG, __VA_ARGS__) |
| #define | SG_INFO(...) io->message(M_INFO, __VA_ARGS__) |
| #define | SG_WARNING(...) io->message(M_WARN, __VA_ARGS__) |
| #define | SG_ERROR(...) io->message(M_ERROR, __VA_ARGS__) |
| #define | SG_PRINT(...) io->message(M_MESSAGEONLY, __VA_ARGS__) |
| #define | SG_NOTIMPLEMENTED io->not_implemented() |
| #define | SG_PROGRESS(...) io->progress(__VA_ARGS__) |
| #define | SG_ABS_PROGRESS(...) io->absolute_progress(__VA_ARGS__) |
| #define | SG_DONE() io->done() |
| #define | SG_SDEBUG(...) sg_io->message(M_DEBUG,__VA_ARGS__) |
| #define | SG_SINFO(...) sg_io->message(M_INFO,__VA_ARGS__) |
| #define | SG_SWARNING(...) sg_io->message(M_WARN,__VA_ARGS__) |
| #define | SG_SERROR(...) sg_io->message(M_ERROR,__VA_ARGS__) |
| #define | SG_SPRINT(...) sg_io->message(M_MESSAGEONLY,__VA_ARGS__) |
| #define | SG_SPROGRESS(...) sg_io->progress(__VA_ARGS__) |
| #define | SG_SABS_PROGRESS(...) sg_io->absolute_progress(__VA_ARGS__) |
| #define | SG_SDONE() sg_io->done() |
| #define | SG_SNOTIMPLEMENTED sg_io->not_implemented() |
| #define | ASSERT(x) { if (!(x)) SG_SERROR("assertion %s failed in file %s line %d\n",#x, __FILE__, __LINE__);} |
Enumerations |
| enum | EMessageType {
M_DEBUG,
M_INFO,
M_NOTICE,
M_WARN,
M_ERROR,
M_CRITICAL,
M_ALERT,
M_EMERGENCY,
M_MESSAGEONLY
} |
Variables |
| CIO * | sg_io |
Define Documentation
| #define ASSERT |
( |
x |
|
) |
{ if (!(x)) SG_SERROR("assertion %s failed in file %s line %d\n",#x, __FILE__, __LINE__);} |
Definition at line 85 of file io.h.
| #define CONST_DIRENT_T const struct dirent |
Definition at line 56 of file io.h.
Definition at line 51 of file io.h.
Definition at line 50 of file io.h.
| #define SG_ABS_PROGRESS |
( |
... |
|
) |
io->absolute_progress(__VA_ARGS__) |
Definition at line 71 of file io.h.
| #define SG_DEBUG |
( |
... |
|
) |
io->message(M_DEBUG, __VA_ARGS__) |
Definition at line 63 of file io.h.
| #define SG_DONE |
( |
|
) |
io->done() |
Definition at line 72 of file io.h.
| #define SG_ERROR |
( |
... |
|
) |
io->message(M_ERROR, __VA_ARGS__) |
Definition at line 66 of file io.h.
| #define SG_INFO |
( |
... |
|
) |
io->message(M_INFO, __VA_ARGS__) |
Definition at line 64 of file io.h.
| #define SG_NOTIMPLEMENTED io->not_implemented() |
Definition at line 68 of file io.h.
| #define SG_PRINT |
( |
... |
|
) |
io->message(M_MESSAGEONLY, __VA_ARGS__) |
Definition at line 67 of file io.h.
| #define SG_PROGRESS |
( |
... |
|
) |
io->progress(__VA_ARGS__) |
Definition at line 70 of file io.h.
| #define SG_SABS_PROGRESS |
( |
... |
|
) |
sg_io->absolute_progress(__VA_ARGS__) |
Definition at line 81 of file io.h.
| #define SG_SDEBUG |
( |
... |
|
) |
sg_io->message(M_DEBUG,__VA_ARGS__) |
Definition at line 75 of file io.h.
| #define SG_SDONE |
( |
|
) |
sg_io->done() |
Definition at line 82 of file io.h.
| #define SG_SERROR |
( |
... |
|
) |
sg_io->message(M_ERROR,__VA_ARGS__) |
Definition at line 78 of file io.h.
| #define SG_SINFO |
( |
... |
|
) |
sg_io->message(M_INFO,__VA_ARGS__) |
Definition at line 76 of file io.h.
| #define SG_SNOTIMPLEMENTED sg_io->not_implemented() |
Definition at line 83 of file io.h.
| #define SG_SPRINT |
( |
... |
|
) |
sg_io->message(M_MESSAGEONLY,__VA_ARGS__) |
Definition at line 79 of file io.h.
| #define SG_SPROGRESS |
( |
... |
|
) |
sg_io->progress(__VA_ARGS__) |
Definition at line 80 of file io.h.
| #define SG_SWARNING |
( |
... |
|
) |
sg_io->message(M_WARN,__VA_ARGS__) |
Definition at line 77 of file io.h.
| #define SG_WARNING |
( |
... |
|
) |
io->message(M_WARN, __VA_ARGS__) |
Definition at line 65 of file io.h.
Enumeration Type Documentation
The io libs output [DEBUG] etc in front of every message 'higher' messages filter output depending on the loglevel, i.e. CRITICAL messages will print all M_CRITICAL TO M_EMERGENCY messages.
- Enumerator:
| M_DEBUG |
|
| M_INFO |
|
| M_NOTICE |
|
| M_WARN |
|
| M_ERROR |
|
| M_CRITICAL |
|
| M_ALERT |
|
| M_EMERGENCY |
|
| M_MESSAGEONLY |
|
Definition at line 36 of file io.h.
Variable Documentation