MySQL 9.6.0
Source Code Documentation
Gr_clock_timestamp_provider Class Reference

#include <mysql_gcs_timestamp_provider.h>

Inheritance diagram for Gr_clock_timestamp_provider:
[legend]

Public Member Functions

 Gr_clock_timestamp_provider ()=default
 
 ~Gr_clock_timestamp_provider () override=default
 
 Gr_clock_timestamp_provider (const Gr_clock_timestamp_provider &other)=delete
 
Gr_clock_timestamp_provideroperator= (const Gr_clock_timestamp_provider &other)=delete
 
 Gr_clock_timestamp_provider (Gr_clock_timestamp_provider &&other)=delete
 
Gr_clock_timestamp_provideroperator= (Gr_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

◆ Gr_clock_timestamp_provider() [1/3]

Gr_clock_timestamp_provider::Gr_clock_timestamp_provider ( )
default

◆ ~Gr_clock_timestamp_provider()

Gr_clock_timestamp_provider::~Gr_clock_timestamp_provider ( )
overridedefault

◆ Gr_clock_timestamp_provider() [2/3]

Gr_clock_timestamp_provider::Gr_clock_timestamp_provider ( const Gr_clock_timestamp_provider other)
delete

◆ Gr_clock_timestamp_provider() [3/3]

Gr_clock_timestamp_provider::Gr_clock_timestamp_provider ( Gr_clock_timestamp_provider &&  other)
delete

Member Function Documentation

◆ finalize()

enum_gcs_error Gr_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 Gr_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 Gr_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 Gr_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]

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

◆ operator=() [2/2]

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

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