9#ifndef ASG_MESSAGING__MESSAGE_PRINTER_OVERLAY_H
10#define ASG_MESSAGING__MESSAGE_PRINTER_OVERLAY_H
14 class IMessagePrinter;
55 static IMessagePrinter&
current () noexcept;
69 static IMessagePrinter*&
getCurrent () noexcept;
static IMessagePrinter & current() noexcept
get the current IMessagePrinter
~MessagePrinterOverlay() noexcept
remove the currently overlaid printer
IMessagePrinter * m_current
the current message printer we should have when we restore
IMessagePrinter * m_saved
the stored message printer we need to restore
MessagePrinterOverlay(MessagePrinterOverlay &)=delete
MessagePrinterOverlay operator=(MessagePrinterOverlay &)=delete
static IMessagePrinter *& getCurrent() noexcept
get a reference to the pointer to the current IMessagePrinter