MySQL 9.6.0
Source Code Documentation
Clock_timestamp_interface Class Referenceabstract

This is the interface for the timestamp provider for entries that end up in the Debugger log. More...

#include <gcs_logging.h>

Inheritance diagram for Clock_timestamp_interface:
[legend]

Public Member Functions

 Clock_timestamp_interface ()=default
 
 ~Clock_timestamp_interface () override=default
 
 Clock_timestamp_interface (const Clock_timestamp_interface &other)=delete
 
Clock_timestamp_interfaceoperator= (const Clock_timestamp_interface &other)=delete
 
 Clock_timestamp_interface (Clock_timestamp_interface &&other)=delete
 
Clock_timestamp_interfaceoperator= (Clock_timestamp_interface &&other)=delete
 
virtual void get_timestamp_as_c_string (char *buffer, size_t *size)=0
 Get the timestamp as c string object. More...
 
virtual void get_timestamp_as_string (std::string &str)=0
 Get the timestamp as std::string. 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...
 
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

This is the interface for the timestamp provider for entries that end up in the Debugger log.

The GCS will add timestamps to the log entries according to the representation returned by the member functions below.

Constructor & Destructor Documentation

◆ Clock_timestamp_interface() [1/3]

Clock_timestamp_interface::Clock_timestamp_interface ( )
default

◆ ~Clock_timestamp_interface()

Clock_timestamp_interface::~Clock_timestamp_interface ( )
overridedefault

◆ Clock_timestamp_interface() [2/3]

Clock_timestamp_interface::Clock_timestamp_interface ( const Clock_timestamp_interface other)
delete

◆ Clock_timestamp_interface() [3/3]

Clock_timestamp_interface::Clock_timestamp_interface ( Clock_timestamp_interface &&  other)
delete

Member Function Documentation

◆ get_timestamp_as_c_string()

virtual void Clock_timestamp_interface::get_timestamp_as_c_string ( char *  buffer,
size_t *  size 
)
pure virtual

Get the timestamp as c string object.

Parameters
[in]bufferthe buffer to store the timestamp into
[in,out]sizeas an input contains the size of the buffer, as output contains the number of bytes written to the buffer.

Implemented in Gr_clock_timestamp_provider, and Gcs_clock_timestamp_provider.

◆ get_timestamp_as_string()

virtual void Clock_timestamp_interface::get_timestamp_as_string ( std::string &  str)
pure virtual

Get the timestamp as std::string.

Parameters
strthe string to store the timestamp into.

Implemented in Gr_clock_timestamp_provider, and Gcs_clock_timestamp_provider.

◆ operator=() [1/2]

Clock_timestamp_interface & Clock_timestamp_interface::operator= ( Clock_timestamp_interface &&  other)
delete

◆ operator=() [2/2]

Clock_timestamp_interface & Clock_timestamp_interface::operator= ( const Clock_timestamp_interface other)
delete

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