Fray Engine
Loading...
Searching...
No Matches
fray::log::EngineLogSink::Attachment Class Reference

Keeps the sink attached to live managers and detaches it on destruction. Declare after the managers so it is destroyed before them. More...

#include <engine_log_sink.hpp>

Public Member Functions

 Attachment (EngineLogSink &sink, FrayManager &app, ipc::IPCManager &ipc)
 Attaches the managers and submits buffered startup lines in capture order.
 Attachment (const Attachment &)=delete
Attachment & operator= (const Attachment &)=delete
 ~Attachment ()
 Detaches before the managers are destroyed.

Private Attributes

EngineLogSink & _sink

Detailed Description

Keeps the sink attached to live managers and detaches it on destruction. Declare after the managers so it is destroyed before them.

Definition at line 149 of file engine_log_sink.hpp.

Constructor & Destructor Documentation

◆ Attachment() [1/2]

fray::log::EngineLogSink::Attachment::Attachment ( EngineLogSink & sink,
FrayManager & app,
ipc::IPCManager & ipc )
inline

Attaches the managers and submits buffered startup lines in capture order.

Parameters
sinkStartup sink that must outlive this attachment.
appManager that owns entry preparation and persistence.
ipcManager used for Console delivery.
Exceptions
std::logic_errorIf the sink is already attached or detached.

Definition at line 160 of file engine_log_sink.hpp.

◆ Attachment() [2/2]

fray::log::EngineLogSink::Attachment::Attachment ( const Attachment & )
delete

◆ ~Attachment()

fray::log::EngineLogSink::Attachment::~Attachment ( )
inline

Detaches before the managers are destroyed.

Definition at line 179 of file engine_log_sink.hpp.

Member Function Documentation

◆ operator=()

Attachment & fray::log::EngineLogSink::Attachment::operator= ( const Attachment & )
delete

Member Data Documentation

◆ _sink

EngineLogSink& fray::log::EngineLogSink::Attachment::_sink
private

Definition at line 151 of file engine_log_sink.hpp.


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