MySQL 8.4.2
Source Code Documentation
Common_interface Class Referenceabstract

Common interface that is used to define the sink and logger interfaces. More...

#include <gcs_logging.h>

Inheritance diagram for Common_interface:
[legend]

Public Member Functions

virtual ~Common_interface ()=default
 Define a virtual destructor as instances of this interface can be polymorphically used. More...
 
virtual enum_gcs_error initialize ()=0
 The purpose of this method is to initialize resources used by the objects that implement this interface. More...
 
virtual enum_gcs_error finalize ()=0
 The purpose of this method is to free any resources used by the objects that implement this interface. More...
 

Detailed Description

Common interface that is used to define the sink and logger interfaces.

Constructor & Destructor Documentation

◆ ~Common_interface()

virtual Common_interface::~Common_interface ( )
virtualdefault

Define a virtual destructor as instances of this interface can be polymorphically used.

Member Function Documentation

◆ finalize()

virtual enum_gcs_error Common_interface::finalize ( )
pure virtual

The purpose of this method is to free any resources used by the objects that implement this interface.

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

Implemented in Gcs_gr_logger_impl, Gcs_output_sink, Gcs_default_logger, and Gcs_file_sink.

◆ initialize()

virtual enum_gcs_error Common_interface::initialize ( )
pure virtual

The purpose of this method is to initialize resources used by the objects that implement this interface.

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

Implemented in Gcs_gr_logger_impl, Gcs_output_sink, Gcs_default_logger, and Gcs_file_sink.


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