#include <cerrno>
#include <iostream>
#include <string>
#include "types.h"
Go to the source code of this file.
Classes | |
class | MR::Exception |
class | MR::InvalidImageException |
class | MR::CancelException |
class | MR::LogLevelLatch |
Namespaces | |
namespace | MR |
namespace | MR::App |
Macros | |
#define | CONSOLE(msg) if (MR::App::log_level >= 1) report_to_user_func (msg, -1) |
#define | FAIL(msg) if (MR::App::log_level >= 0) report_to_user_func (msg, 0) |
#define | WARN(msg) if (MR::App::log_level >= 1) report_to_user_func (msg, 1) |
#define | INFO(msg) if (MR::App::log_level >= 2) report_to_user_func (msg, 2) |
#define | DEBUG(msg) if (MR::App::log_level >= 3) report_to_user_func (msg, 3) |
Functions | |
void | MR::display_exception_cmdline (const Exception &E, int log_level) |
void | MR::cmdline_print_func (const std::string &msg) |
void | MR::cmdline_report_to_user_func (const std::string &msg, int type) |
void | MR::check_app_exit_code () |
Variables | |
void(* | MR::print )(const std::string &msg) |
print primary output to stdout as-is. More... | |
void(* | MR::report_to_user_func )(const std::string &msg, int type) |
display error, warning, debug, etc. message to user More... | |
#define CONSOLE | ( | msg | ) | if (MR::App::log_level >= 1) report_to_user_func (msg, -1) |
Definition at line 71 of file exception.h.
#define DEBUG | ( | msg | ) | if (MR::App::log_level >= 3) report_to_user_func (msg, 3) |
Definition at line 75 of file exception.h.
#define FAIL | ( | msg | ) | if (MR::App::log_level >= 0) report_to_user_func (msg, 0) |
Definition at line 72 of file exception.h.
#define INFO | ( | msg | ) | if (MR::App::log_level >= 2) report_to_user_func (msg, 2) |
Definition at line 74 of file exception.h.
#define WARN | ( | msg | ) | if (MR::App::log_level >= 1) report_to_user_func (msg, 1) |
Definition at line 73 of file exception.h.