1 // License: GPL 2 - se the COPYING file in the root directory
4 The class manages the standard output things.
15 @enum VER_MODE Defines the verbosity steps.
31 #define V_DEFAULT_MODE V_MODE_INFO
33 #define STRING_ADVICE "ADVICE:"
34 #define STRING_ERROR "ERROR:"
35 #define STRING_INFO ""
36 #define STRING_WARNING "WARNING:"
43 creates the stdoutput object
44 @param v_mode the verbosity mode
47 classStdoutput(VER_MODE v_mode
= V_DEFAULT_MODE
);
50 destroys the db engine object
51 @sa classStdoutput(VER_MODE v_mode = V_DEFAULT_MODE)
56 sends a message to std::cout if the verbosity mode is at least V_MODE_ADVICE
57 @param s_message message to send
58 @sa classStdoutput(VER_MODE v_mode = V_DEFAULT_MODE),
59 Error(std::string s_message, int erro_code = 0),
60 Warning(std::string s_message),
61 Info(std::string s_message)
63 void Advice(std::string s_message
, bool show_msgbox
= 0);
66 sends a message to std::cerr if the verbosity mode is at least V_MODE_ERROR
67 @param s_message message to send
68 @param erro_code error number
69 @sa classStdoutput(VER_MODE v_mode = V_DEFAULT_MODE),
70 Warning(std::string s_message),
71 Advice(std::string s_message),
72 Info(std::string s_message)
74 void Error(std::string s_message
, bool show_msgbox
= 0);
77 sends a message to std::cout if the verbosity mode is at least V_MODE_INFO
78 @param s_message message to send
79 @sa classStdoutput(VER_MODE v_mode = V_DEFAULT_MODE),
80 Error(std::string s_message, int erro_code = 0),
81 Warning(std::string s_message),
82 Advice(std::string s_message),
84 void Info(std::string s_message
, bool show_msgbox
= 0);
87 sends a message to std::clog if the verbosity mode is at least V_MODE_WARNING
88 @param s_message message to send
89 @sa classStdoutput(VER_MODE v_mode = V_DEFAULT_MODE),
90 Error(std::string s_message, int erro_code = 0),
91 Advice(std::string s_message),
92 Info(std::string s_message)
94 void Warning(std::string s_message
, bool show_msgbox
= 0);
97 unsigned int verbosity_mode
;