MySQL 8.0.40
Source Code Documentation
server_mock::MySQLServerMockSession Class Referenceabstract

#include <mock_session.h>

Inheritance diagram for server_mock::MySQLServerMockSession:
[legend]

Public Member Functions

 MySQLServerMockSession (std::unique_ptr< StatementReaderBase > statement_processor, const bool debug_mode)
 
virtual ~MySQLServerMockSession ()=default
 
virtual void run ()=0
 
virtual void cancel ()=0
 
virtual void terminate ()=0
 
bool debug_mode () const
 
void disconnector (std::function< void()> func)
 
void disconnect ()
 

Protected Attributes

std::unique_ptr< StatementReaderBasejson_reader_
 

Private Attributes

bool debug_mode_
 
std::function< void()> disconnector_
 

Constructor & Destructor Documentation

◆ MySQLServerMockSession()

server_mock::MySQLServerMockSession::MySQLServerMockSession ( std::unique_ptr< StatementReaderBase statement_processor,
const bool  debug_mode 
)
inline

◆ ~MySQLServerMockSession()

virtual server_mock::MySQLServerMockSession::~MySQLServerMockSession ( )
virtualdefault

Member Function Documentation

◆ cancel()

virtual void server_mock::MySQLServerMockSession::cancel ( )
pure virtual

◆ debug_mode()

bool server_mock::MySQLServerMockSession::debug_mode ( ) const
inline

◆ disconnect()

void server_mock::MySQLServerMockSession::disconnect ( )
inline

◆ disconnector()

void server_mock::MySQLServerMockSession::disconnector ( std::function< void()>  func)
inline

◆ run()

virtual void server_mock::MySQLServerMockSession::run ( )
pure virtual

◆ terminate()

virtual void server_mock::MySQLServerMockSession::terminate ( )
pure virtual

Member Data Documentation

◆ debug_mode_

bool server_mock::MySQLServerMockSession::debug_mode_
private

◆ disconnector_

std::function<void()> server_mock::MySQLServerMockSession::disconnector_
private

◆ json_reader_

std::unique_ptr<StatementReaderBase> server_mock::MySQLServerMockSession::json_reader_
protected

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