MySQL 8.4.2
Source Code Documentation
Gcs_output_sink Class Reference

Standard output sink. More...

#include <gcs_logging_system.h>

Inheritance diagram for Gcs_output_sink:
[legend]

Public Member Functions

 Gcs_output_sink ()
 
 ~Gcs_output_sink () override=default
 
enum_gcs_error initialize () override
 Output sink initialization method. More...
 
enum_gcs_error finalize () override
 Output sink finalization method. More...
 
void log_event (const std::string &message) override
 Print the received message to the standard output stream. More...
 
void log_event (const char *message, size_t message_size) override
 Print the received message to the standard output stream. More...
 
const std::string get_information () const override
 Return information on the sink such as its location. More...
 
- Public Member Functions inherited from Sink_interface
 ~Sink_interface () override=default
 Define a virtual destructor as instances of this interface can be polymorphically used. More...
 
- Public Member Functions inherited from Common_interface
virtual ~Common_interface ()=default
 Define a virtual destructor as instances of this interface can be polymorphically used. More...
 

Private Member Functions

 Gcs_output_sink (Gcs_output_sink &s)
 
Gcs_output_sinkoperator= (const Gcs_output_sink &s)
 

Private Attributes

bool m_initialized
 

Detailed Description

Standard output sink.

Constructor & Destructor Documentation

◆ Gcs_output_sink() [1/2]

Gcs_output_sink::Gcs_output_sink ( )
explicit

◆ ~Gcs_output_sink()

Gcs_output_sink::~Gcs_output_sink ( )
overridedefault

◆ Gcs_output_sink() [2/2]

Gcs_output_sink::Gcs_output_sink ( Gcs_output_sink s)
private

Member Function Documentation

◆ finalize()

enum_gcs_error Gcs_output_sink::finalize ( )
overridevirtual

Output sink finalization method.

Return values
GCS_OKin case everything goes well. Any other value of gcs_error in case of error.

Implements Common_interface.

◆ get_information()

const std::string Gcs_output_sink::get_information ( ) const
overridevirtual

Return information on the sink such as its location.

Implements Sink_interface.

◆ initialize()

enum_gcs_error Gcs_output_sink::initialize ( )
overridevirtual

Output sink initialization method.

Return values
GCS_OKin case everything goes well. Any other value of gcs_error in case of error

Implements Common_interface.

◆ log_event() [1/2]

void Gcs_output_sink::log_event ( const char *  message,
size_t  message_size 
)
overridevirtual

Print the received message to the standard output stream.

Parameters
messagerendered stream of the logging message
message_sizelogging message size

Implements Sink_interface.

◆ log_event() [2/2]

void Gcs_output_sink::log_event ( const std::string &  message)
overridevirtual

Print the received message to the standard output stream.

Parameters
messagerendered stream of the logging message

Implements Sink_interface.

◆ operator=()

Gcs_output_sink & Gcs_output_sink::operator= ( const Gcs_output_sink s)
private

Member Data Documentation

◆ m_initialized

bool Gcs_output_sink::m_initialized
private

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