MySQL 8.0.40
Source Code Documentation
|
The parent class for group wide operations. More...
#include <group_action.h>
Public Types | |
enum | enum_action_result_level { GROUP_ACTION_LOG_INFO = 0 , GROUP_ACTION_LOG_WARNING = 1 , GROUP_ACTION_LOG_ERROR = 2 , GROUP_ACTION_LOG_END = 3 } |
Public Member Functions | |
Group_action_diagnostics () | |
Constructor. More... | |
void | set_execution_info (Group_action_diagnostics *diagnostics) |
Set the message for this operation. More... | |
void | set_execution_message_level (enum_action_result_level level) |
Set the result level for the message for this operation. More... | |
void | set_execution_message (enum_action_result_level level, std::string &message) |
Set the message for this operation. More... | |
void | set_execution_message (enum_action_result_level level, const char *message) |
Set the message for this operation. More... | |
void | append_execution_message (const char *message) |
Appends the given message to the execution message for this operation. More... | |
void | append_execution_message (std::string &message) |
Appends the given message to the execution message for this operation. More... | |
void | set_warning_message (const char *warning_msg) |
Set the warning message for this operation. More... | |
void | append_warning_message (const char *warning_msg) |
Append to the warning message for this operation. More... | |
std::string & | get_execution_message () |
std::string & | get_warning_message () |
enum_action_result_level | get_execution_message_level () |
bool | has_warning () |
return The test has logged warnings? More... | |
void | clear_info () |
Removes the old log messages and level information. More... | |
Private Attributes | |
enum_action_result_level | message_level |
Simply log, are there warnings, or should we report an error. More... | |
std::string | log_message |
The log execution message: success or failure. More... | |
std::string | warning_message |
The warning message. More... | |
The parent class for group wide operations.
Group_action_diagnostics::Group_action_diagnostics | ( | ) |
Constructor.
void Group_action_diagnostics::append_execution_message | ( | const char * | message | ) |
Appends the given message to the execution message for this operation.
message | the message to append |
void Group_action_diagnostics::append_execution_message | ( | std::string & | message | ) |
Appends the given message to the execution message for this operation.
message | the message to append |
void Group_action_diagnostics::append_warning_message | ( | const char * | warning_msg | ) |
Append to the warning message for this operation.
warning_msg | the message to the user |
void Group_action_diagnostics::clear_info | ( | ) |
Removes the old log messages and level information.
std::string & Group_action_diagnostics::get_execution_message | ( | ) |
Group_action_diagnostics::enum_action_result_level Group_action_diagnostics::get_execution_message_level | ( | ) |
std::string & Group_action_diagnostics::get_warning_message | ( | ) |
bool Group_action_diagnostics::has_warning | ( | ) |
return The test has logged warnings?
void Group_action_diagnostics::set_execution_info | ( | Group_action_diagnostics * | diagnostics | ) |
Set the message for this operation.
diagnostics | another diagnostics object |
void Group_action_diagnostics::set_execution_message | ( | enum_action_result_level | level, |
const char * | message | ||
) |
Set the message for this operation.
level | if it is an information, warning or error message |
message | the message to the user |
void Group_action_diagnostics::set_execution_message | ( | enum_action_result_level | level, |
std::string & | message | ||
) |
Set the message for this operation.
level | if it is an information, warning or error message |
message | the message to the user |
void Group_action_diagnostics::set_execution_message_level | ( | enum_action_result_level | level | ) |
Set the result level for the message for this operation.
level | the level of the return message |
void Group_action_diagnostics::set_warning_message | ( | const char * | warning_msg | ) |
Set the warning message for this operation.
warning_msg | the message to the user |
|
private |
The log execution message: success or failure.
|
private |
Simply log, are there warnings, or should we report an error.
|
private |
The warning message.