TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::Diagnostics::LogArg Struct Reference

One argument. More...

#include <gui_core/diagnostics/gui_logging.h>

Classes

union  [union].__unnamed0__

Public Types

enum class  Kind : uint8_t {
  None = 0 , Int , Uint , Float ,
  Text
}
 Which value the argument holds. More...

Public Attributes

Kind kind = Kind::None
 Picks i, u, f or the text.
union  
std::string_view text
 Kind::Text, while passed to LogMessage.
uint16_t textOffset = 0
 record only: where the text starts in LogRecord::text
uint16_t textLength = 0
 record only: the text's length in bytes

Detailed Description

One argument.

While passed to LogMessage, text views the caller's string; inside a LogRecord it is empty and the text lives in the record (use LogArgText).

Member Enumeration Documentation

◆ Kind

enum class tachyon::Diagnostics::LogArg::Kind : uint8_t
strong

Which value the argument holds.

Enumerator
None 
Int 
Uint 
Float 
Text 

Member Data Documentation

◆ kind

Kind tachyon::Diagnostics::LogArg::kind = Kind::None

Picks i, u, f or the text.

◆ @270262152126016277375007107037321105235252310076

◆ text

std::string_view tachyon::Diagnostics::LogArg::text

Kind::Text, while passed to LogMessage.

◆ textOffset

uint16_t tachyon::Diagnostics::LogArg::textOffset = 0

record only: where the text starts in LogRecord::text

◆ textLength

uint16_t tachyon::Diagnostics::LogArg::textLength = 0

record only: the text's length in bytes


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