Skip to content

Class AIAC::LayerLogRecorder

ClassList > AIAC > LayerLogRecorder

Inherits the following classes: AIAC::Layer

Public Functions

Type Name
bool IsPaused () const
the recoder is paused
bool IsRecording () const
the recorder is on
LayerLogRecorder () = default
virtual void OnAttach () override
Is called when the layer is attached to the application.
virtual void OnFrameStart () override
Is called when frame starts.
void PauseRecording ()
Pause recording.
void ResumeRecording ()
Pause recording.
void StartRecording (std::string logRootFolderPath="")
Start recording the log to a file.
void StopRecording ()
Stop recording the log to a file.
virtual ~LayerLogRecorder () = default

Public Functions inherited from AIAC::Layer

See AIAC::Layer

Type Name
virtual void OnAttach ()
Is called when the layer is attached to the application.
virtual void OnDetach ()
Is called when the layer is detached from the application (~app).
virtual void OnFrameAwake ()
Is calle before GLFW poll events, GL frame and Imgui Frame.
virtual void OnFrameEnd ()
Is called when frame ends.
virtual void OnFrameFall ()
Is called when the GLFW, GL and Imgui frame is updated and rendered.
virtual void OnFrameStart ()
Is called when frame starts.
virtual ~Layer () = default

Public Functions Documentation

function IsPaused

the recoder is paused

inline bool AIAC::LayerLogRecorder::IsPaused () const


function IsRecording

the recorder is on

inline bool AIAC::LayerLogRecorder::IsRecording () const

Returns:

true if it's recording, false otherwise


function LayerLogRecorder

AIAC::LayerLogRecorder::LayerLogRecorder () = default

function OnAttach

Is called when the layer is attached to the application.

virtual void AIAC::LayerLogRecorder::OnAttach () override

Implements AIAC::Layer::OnAttach


function OnFrameStart

Is called when frame starts.

virtual void AIAC::LayerLogRecorder::OnFrameStart () override

Implements AIAC::Layer::OnFrameStart


function PauseRecording

Pause recording.

void AIAC::LayerLogRecorder::PauseRecording () 


function ResumeRecording

Pause recording.

void AIAC::LayerLogRecorder::ResumeRecording () 


function StartRecording

Start recording the log to a file.

void AIAC::LayerLogRecorder::StartRecording (
    std::string logRootFolderPath=""
) 

Parameters:

  • logRootFolderPath The filename of the log file

function StopRecording

Stop recording the log to a file.

void AIAC::LayerLogRecorder::StopRecording () 


function ~LayerLogRecorder

virtual AIAC::LayerLogRecorder::~LayerLogRecorder () = default


The documentation for this class was generated from the following file src/AIAC/LayerLogRecorder.h