26#ifndef MYSQL_HARNESS_LOG_REOPEN_COMPONENT_INCLUDED
27#define MYSQL_HARNESS_LOG_REOPEN_COMPONENT_INCLUDED
31#include "harness_export.h"
76 void init() { log_reopen_ = std::make_unique<LogReopen>(); }
91 operator bool()
const {
return (
bool)log_reopen_; }
96 void reset() { log_reopen_.reset(); }
component that manages the reopening of logfiles.
Definition: log_reopen_component.h:59
void reset()
shutdown the log-component.
Definition: log_reopen_component.h:96
void init()
initialize the log-component.
Definition: log_reopen_component.h:76
const LogReopen * operator->() const
forwards pointer deref's to the log_reopen instance.
Definition: log_reopen_component.h:86
LogReopenComponent(LogReopenComponent &&)=delete
void operator=(LogReopenComponent const &)=delete
std::unique_ptr< LogReopen > log_reopen_
Definition: log_reopen_component.h:101
void operator=(LogReopenComponent &&)=delete
LogReopenComponent()=default
LogReopen * operator->()
forwards pointer deref's to the log_reopen instance.
Definition: log_reopen_component.h:81
LogReopenComponent(LogReopenComponent const &)=delete
Definition: log_reopen.h:38