MySQL 8.0.40
Source Code Documentation
Mysql::Tools::Dump::Composite_message_handler Class Reference

#include <composite_message_handler.h>

Static Public Member Functions

static std::function< bool(const Mysql::Tools::Base::Message_data &)> * create_composite_handler (const std::vector< std::function< bool(const Mysql::Tools::Base::Message_data &)> * > &message_handlers)
 

Private Member Functions

 Composite_message_handler (const std::vector< std::function< bool(const Mysql::Tools::Base::Message_data &)> * > &message_handlers)
 
bool pass_message (const Mysql::Tools::Base::Message_data &message_data)
 Passes message to message callbacks in reverse order, stopping on first handler to declare message consumed. More...
 

Private Attributes

std::vector< std::function< bool(const Mysql::Tools::Base::Message_data &)> * > m_message_handlers
 

Constructor & Destructor Documentation

◆ Composite_message_handler()

Composite_message_handler::Composite_message_handler ( const std::vector< std::function< bool(const Mysql::Tools::Base::Message_data &)> * > &  message_handlers)
explicitprivate

Member Function Documentation

◆ create_composite_handler()

std::function< bool(const Mysql::Tools::Base::Message_data &)> * Composite_message_handler::create_composite_handler ( const std::vector< std::function< bool(const Mysql::Tools::Base::Message_data &)> * > &  message_handlers)
static

◆ pass_message()

bool Composite_message_handler::pass_message ( const Mysql::Tools::Base::Message_data message_data)
private

Passes message to message callbacks in reverse order, stopping on first handler to declare message consumed.

Member Data Documentation

◆ m_message_handlers

std::vector<std::function<bool(const Mysql::Tools::Base::Message_data &)> *> Mysql::Tools::Dump::Composite_message_handler::m_message_handlers
private

The documentation for this class was generated from the following files: