MySQL 9.6.0
Source Code Documentation
Gcs_clock_timestamp_provider Class Reference

#include <gcs_logging_system.h>

Inheritance diagram for Gcs_clock_timestamp_provider:
[legend]

Public Member Functions

 Gcs_clock_timestamp_provider ()=default
 
 ~Gcs_clock_timestamp_provider () override=default
 
 Gcs_clock_timestamp_provider (const Gcs_clock_timestamp_provider &other)=delete
 
Gcs_clock_timestamp_provideroperator= (const Gcs_clock_timestamp_provider &other)=delete
 
 Gcs_clock_timestamp_provider (Gcs_clock_timestamp_provider &&other)=delete
 
Gcs_clock_timestamp_provideroperator= (Gcs_clock_timestamp_provider &&other)=delete
 
enum_gcs_error initialize () override
 The purpose of this method is to initialize resources used by the objects that implement this interface. More...
 
enum_gcs_error finalize () override
 The purpose of this method is to free any resources used by the objects that implement this interface. More...
 
void get_timestamp_as_c_string (char *buffer, size_t *size) override
 Get the timestamp as c string object. More...
 
void get_timestamp_as_string (std::string &str) override
 Get the timestamp as std::string. More...
 
- Public Member Functions inherited from Clock_timestamp_interface
 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
 
- 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...
 

Constructor & Destructor Documentation

◆ Gcs_clock_timestamp_provider() [1/3]

Gcs_clock_timestamp_provider::Gcs_clock_timestamp_provider ( )
default

◆ ~Gcs_clock_timestamp_provider()

Gcs_clock_timestamp_provider::~Gcs_clock_timestamp_provider ( )
overridedefault

◆ Gcs_clock_timestamp_provider() [2/3]

Gcs_clock_timestamp_provider::Gcs_clock_timestamp_provider ( const Gcs_clock_timestamp_provider other)
delete

◆ Gcs_clock_timestamp_provider() [3/3]

Gcs_clock_timestamp_provider::Gcs_clock_timestamp_provider ( Gcs_clock_timestamp_provider &&  other)
delete

Member Function Documentation

◆ finalize()

enum_gcs_error Gcs_clock_timestamp_provider::finalize ( )
inlineoverridevirtual

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.

Implements Common_interface.

◆ get_timestamp_as_c_string()

void Gcs_clock_timestamp_provider::get_timestamp_as_c_string ( char *  buffer,
size_t *  size 
)
overridevirtual

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.

Implements Clock_timestamp_interface.

◆ get_timestamp_as_string()

void Gcs_clock_timestamp_provider::get_timestamp_as_string ( std::string &  str)
overridevirtual

Get the timestamp as std::string.

Parameters
strthe string to store the timestamp into.

Implements Clock_timestamp_interface.

◆ initialize()

enum_gcs_error Gcs_clock_timestamp_provider::initialize ( )
inlineoverridevirtual

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.

Implements Common_interface.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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