LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::RenderingDebugger::Message Class Reference

Rendering debugger message class. More...

#include <RenderingDebugger.h>

Public Member Functions

 Message ()=default
 Message (const StringView &text, const StringView &source, const StringView &groupName)
 Initializes the message with text, source, and group name information.
void Block ()
 Blocks further occurrences of this message.
void BlockAfter (std::size_t occurrences)
 Blocks further occurrences of this message after the specified amount of messages have been occurred.
UTF8String ToReportString () const
 Returns a report string for this message.
const UTF8String & GetText () const
 Returns the message text.
const UTF8String & GetSource () const
 Returns the source function where this message occurred.
const UTF8String & GetGroupName () const
 Returns the debug group name where this message occurred.
std::size_t GetOccurrences () const
 Returns the number of occurrences of this message.
bool IsBlocked () const
 Returns true if this message has already been blocked.

Protected Member Functions

void IncOccurrence ()

Friends

class RenderingDebugger

Detailed Description

Rendering debugger message class.

See also
RenderingDebugger::OnError
RenderingDebugger::OnWarning

Constructor & Destructor Documentation

◆ Message() [1/2]

LLGL::RenderingDebugger::Message::Message ( )
default

◆ Message() [2/2]

LLGL::RenderingDebugger::Message::Message ( const StringView & text,
const StringView & source,
const StringView & groupName )

Initializes the message with text, source, and group name information.

Member Function Documentation

◆ Block()

void LLGL::RenderingDebugger::Message::Block ( )

Blocks further occurrences of this message.

◆ BlockAfter()

void LLGL::RenderingDebugger::Message::BlockAfter ( std::size_t occurrences)

Blocks further occurrences of this message after the specified amount of messages have been occurred.

◆ GetGroupName()

const UTF8String & LLGL::RenderingDebugger::Message::GetGroupName ( ) const
inline

Returns the debug group name where this message occurred.

◆ GetOccurrences()

std::size_t LLGL::RenderingDebugger::Message::GetOccurrences ( ) const
inline

Returns the number of occurrences of this message.

◆ GetSource()

const UTF8String & LLGL::RenderingDebugger::Message::GetSource ( ) const
inline

Returns the source function where this message occurred.

◆ GetText()

const UTF8String & LLGL::RenderingDebugger::Message::GetText ( ) const
inline

Returns the message text.

◆ IncOccurrence()

void LLGL::RenderingDebugger::Message::IncOccurrence ( )
protected

◆ IsBlocked()

bool LLGL::RenderingDebugger::Message::IsBlocked ( ) const
inline

Returns true if this message has already been blocked.

◆ ToReportString()

UTF8String LLGL::RenderingDebugger::Message::ToReportString ( ) const

Returns a report string for this message.

Returns
Constructed report string containing all information of this message.

◆ RenderingDebugger

friend class RenderingDebugger
friend

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