|
SHOGUN
v2.0.0
|
Go to the source code of this file.
Classes | |
| class | SGIO |
| Class SGIO, used to do input output operations throughout shogun. More... | |
| struct | substring |
| struct Substring, specified by start position and end position. More... | |
Macros | |
| #define | NUM_LOG_LEVELS 10 |
| #define | FBUFSIZE 4096 |
| #define | CONST_DIRENT_T const struct dirent |
| #define | SG_SET_LOCALE_C setlocale(LC_ALL, "C") |
| #define | SG_RESET_LOCALE setlocale(LC_ALL, "") |
| #define | SG_GCDEBUG(...) io->message(MSG_GCDEBUG, __FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_DEBUG(...) io->message(MSG_DEBUG, __FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_INFO(...) io->message(MSG_INFO, __FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_WARNING(...) io->message(MSG_WARN, __FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_ERROR(...) io->message(MSG_ERROR, __FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_UNSTABLE(func,...) |
| #define | SG_PRINT(...) io->message(MSG_MESSAGEONLY, __FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_NOTIMPLEMENTED io->not_implemented(__FILE__, __LINE__) |
| #define | SG_DEPRECATED io->deprecated(__FILE__, __LINE__) |
| #define | SG_PROGRESS(...) io->progress(__VA_ARGS__) |
| #define | SG_ABS_PROGRESS(...) io->absolute_progress(__VA_ARGS__) |
| #define | SG_DONE() io->done() |
| #define | SG_SGCDEBUG(...) sg_io->message(MSG_GCDEBUG,__FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_SDEBUG(...) sg_io->message(MSG_DEBUG,__FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_SINFO(...) sg_io->message(MSG_INFO,__FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_SWARNING(...) sg_io->message(MSG_WARN,__FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_SERROR(...) sg_io->message(MSG_ERROR,__FILE__, __LINE__, __VA_ARGS__) |
| #define | SG_SPRINT(...) sg_io->message(MSG_MESSAGEONLY,__FILE__, __LINE__, __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(__FILE__, __LINE__) |
| #define | SG_SDEPRECATED sg_io->deprecated(__FILE__, __LINE__) |
| #define | ASSERT(x) { if (!(x)) SG_SERROR("assertion %s failed in file %s line %d\n",#x, __FILE__, __LINE__);} |
| #define | REQUIRE(x,...) { if (!(x)) SG_SERROR(__VA_ARGS__); } |
Enumerations | |
| enum | EMessageType { MSG_GCDEBUG, MSG_DEBUG, MSG_INFO, MSG_NOTICE, MSG_WARN, MSG_ERROR, MSG_CRITICAL, MSG_ALERT, MSG_EMERGENCY, MSG_MESSAGEONLY } |
Functions | |
| char * | c_string_of_substring (substring s) |
| void | print_substring (substring s) |
| float32_t | float_of_substring (substring s) |
| float64_t | double_of_substring (substring s) |
| int32_t | int_of_substring (substring s) |
| uint32_t | ulong_of_substring (substring s) |
| uint32_t | ss_length (substring s) |
| #define REQUIRE | ( | x, | |
| ... | |||
| ) | { if (!(x)) SG_SERROR(__VA_ARGS__); } |
| #define SG_ABS_PROGRESS | ( | ... | ) | io->absolute_progress(__VA_ARGS__) |
| #define SG_DEBUG | ( | ... | ) | io->message(MSG_DEBUG, __FILE__, __LINE__, __VA_ARGS__) |
| #define SG_ERROR | ( | ... | ) | io->message(MSG_ERROR, __FILE__, __LINE__, __VA_ARGS__) |
| #define SG_GCDEBUG | ( | ... | ) | io->message(MSG_GCDEBUG, __FILE__, __LINE__, __VA_ARGS__) |
| #define SG_INFO | ( | ... | ) | io->message(MSG_INFO, __FILE__, __LINE__, __VA_ARGS__) |
| #define SG_NOTIMPLEMENTED io->not_implemented(__FILE__, __LINE__) |
| #define SG_PRINT | ( | ... | ) | io->message(MSG_MESSAGEONLY, __FILE__, __LINE__, __VA_ARGS__) |
| #define SG_SABS_PROGRESS | ( | ... | ) | sg_io->absolute_progress(__VA_ARGS__) |
| #define SG_SDEBUG | ( | ... | ) | sg_io->message(MSG_DEBUG,__FILE__, __LINE__, __VA_ARGS__) |
| #define SG_SERROR | ( | ... | ) | sg_io->message(MSG_ERROR,__FILE__, __LINE__, __VA_ARGS__) |
| #define SG_SGCDEBUG | ( | ... | ) | sg_io->message(MSG_GCDEBUG,__FILE__, __LINE__, __VA_ARGS__) |
| #define SG_SINFO | ( | ... | ) | sg_io->message(MSG_INFO,__FILE__, __LINE__, __VA_ARGS__) |
| #define SG_SNOTIMPLEMENTED sg_io->not_implemented(__FILE__, __LINE__) |
| #define SG_SPRINT | ( | ... | ) | sg_io->message(MSG_MESSAGEONLY,__FILE__, __LINE__, __VA_ARGS__) |
| #define SG_SWARNING | ( | ... | ) | sg_io->message(MSG_WARN,__FILE__, __LINE__, __VA_ARGS__) |
| #define SG_UNSTABLE | ( | func, | |
| ... | |||
| ) |