printer::Printer
- Inherits: api::ExecutionContext
public
- Inherits: printer::PrinterFlags
public
- printer::Printer::Array
- printer::Printer::FlagScope
- printer::Printer::LevelScope
- printer::Printer::Object
Types
#
FlagGuardusing printer::Printer::FlagGuard = FlagScope
Type: FlagScope
#
IsNewline- no
- yes
#
LevelGuardusing printer::Printer::LevelGuard = LevelScope
Type: LevelScope
Functions
#
Printer()printer::Printer::Printer ()
#
~Printer()virtual printer::Printer::~Printer ()
#
array(const var::StringView key, const T &value, Level level=Level::fatal)inline
Printer & printer::Printer::array (const var::StringView key, const T &value, Level level=Level::fatal)
Type: Printer &
Parameters:
- const var::StringView
key
const T &
value
- Level
level
#
clear_color_code()void printer::Printer::clear_color_code ()
Type: void
#
clear_format_code(FormatType code)inline
void printer::Printer::clear_format_code (FormatType code)
Type: void
Parameters:
- FormatType
code
#
clear_format_code(u32 code)void printer::Printer::clear_format_code (u32 code)
Type: void
Parameters:
u32
code
#
close_array()Printer & printer::Printer::close_array ()
Type: Printer &
#
close_object()Printer & printer::Printer::close_object ()
Type: Printer &
#
debug(var::StringView a)Printer & printer::Printer::debug (var::StringView a)
Type: Printer &
Parameters:
#
disable_flags(Flags value)inline
Printer & printer::Printer::disable_flags (Flags value)
Type: Printer &
Parameters:
- Flags
value
#
enable_flags(Flags value)inline
Printer & printer::Printer::enable_flags (Flags value)
Type: Printer &
Parameters:
- Flags
value
#
error(api::PrivateExecutionContext result, u32 line_number)Printer & printer::Printer::error (api::PrivateExecutionContext result, u32 line_number)
Type: Printer &
Parameters:
- api::PrivateExecutionContext
result
u32
line_number
#
error(var::StringView a)Printer & printer::Printer::error (var::StringView a)
Type: Printer &
Parameters:
#
fatal(var::StringView a)Printer & printer::Printer::fatal (var::StringView a)
Type: Printer &
Parameters:
#
flags() constinline
Flags printer::Printer::flags () const
Type: Flags
#
indent_size() constinline
u16 printer::Printer::indent_size () const
Type: u16
#
info(var::StringView a)Printer & printer::Printer::info (var::StringView a)
Type: Printer &
Parameters:
#
key(var::StringView key, const var::String &a)Printer & printer::Printer::key (var::StringView key, const var::String &a)
Type: Printer &
Parameters:
- var::StringView
key
- const var::String &
a
#
key(var::StringView key, var::StringView a)Printer & printer::Printer::key (var::StringView key, var::StringView a)
Type: Printer &
Parameters:
#
key_bool(var::StringView key, bool value)Printer & printer::Printer::key_bool (var::StringView key, bool value)
Type: Printer &
Parameters:
- var::StringView
key
bool
value
#
message(var::StringView a)Printer & printer::Printer::message (var::StringView a)
Type: Printer &
Parameters:
#
newline()Printer & printer::Printer::newline ()
Type: Printer &
#
o_flags() constinline
Flags printer::Printer::o_flags () const
Type: Flags
#
object(var::StringView key, const T &value, Level level=Level::fatal)inline
Printer & printer::Printer::object (var::StringView key, const T &value, Level level=Level::fatal)
Type: Printer &
Parameters:
- var::StringView
key
const T &
value
- Level
level
#
open_array(var::StringView key, Level level=Level::fatal)Printer & printer::Printer::open_array (var::StringView key, Level level=Level::fatal)
Type: Printer &
Parameters:
- var::StringView
key
- Level
level
#
open_object(var::StringView key, Level level=Level::fatal)Printer & printer::Printer::open_object (var::StringView key, Level level=Level::fatal)
Type: Printer &
Parameters:
- var::StringView
key
- Level
level
#
operator<<(const api::Error &error_context)Printer & printer::Printer::operator<< (const api::Error &error_context)
Type: Printer &
Parameters:
- const api::Error &
error_context
#
operator<<(const var::DataInfo &a)Printer & printer::Printer::operator<< (const var::DataInfo &a)
Type: Printer &
Parameters:
- const var::DataInfo &
a
#
operator<<(const var::String &a)Printer & printer::Printer::operator<< (const var::String &a)
Type: Printer &
Parameters:
- const var::String &
a
#
operator<<(const var::StringList &a)Printer & printer::Printer::operator<< (const var::StringList &a)
Type: Printer &
Parameters:
- const var::StringList &
a
#
operator<<(const var::StringViewList &a)Printer & printer::Printer::operator<< (const var::StringViewList &a)
Type: Printer &
Parameters:
- const var::StringViewList &
a
#
operator<<(float a)Printer & printer::Printer::operator<< (float a)
Type: Printer &
Parameters:
float
a
#
operator<<(s16 a)Printer & printer::Printer::operator<< (s16 a)
Type: Printer &
Parameters:
s16
a
#
operator<<(s32 a)Printer & printer::Printer::operator<< (s32 a)
Type: Printer &
Parameters:
s32
a
#
operator<<(s8 a)Printer & printer::Printer::operator<< (s8 a)
Type: Printer &
Parameters:
s8
a
#
operator<<(u16 a)Printer & printer::Printer::operator<< (u16 a)
Type: Printer &
Parameters:
u16
a
#
operator<<(u32 a)Printer & printer::Printer::operator<< (u32 a)
Type: Printer &
Parameters:
u32
a
#
operator<<(u8 a)Printer & printer::Printer::operator<< (u8 a)
Type: Printer &
Parameters:
u8
a
#
operator<<(var::StringView a)Printer & printer::Printer::operator<< (var::StringView a)
Type: Printer &
Parameters:
#
operator<<(var::View a)Printer & printer::Printer::operator<< (var::View a)
Type: Printer &
Parameters:
#
operator<<(void *a)Printer & printer::Printer::operator<< (void *a)
Type: Printer &
Parameters:
void *
a
#
print(Level level, var::StringView key, var::StringView value, IsNewline is_newline)virtual void printer::Printer::print (Level level, var::StringView key, var::StringView value, IsNewline is_newline)
Type: void
Parameters:
- Level
level
- var::StringView
key
- var::StringView
value
- IsNewline
is_newline
#
print_close_array()virtual void printer::Printer::print_close_array ()
Type: void
#
print_close_object()virtual void printer::Printer::print_close_object ()
Type: void
#
print_open_array(Level verbose_level, var::StringView key)virtual void printer::Printer::print_open_array (Level verbose_level, var::StringView key)
Type: void
Parameters:
- Level
verbose_level
- var::StringView
key
#
print_open_object(Level verbose_level, var::StringView key)virtual void printer::Printer::print_open_object (Level verbose_level, var::StringView key)
Type: void
Parameters:
- Level
verbose_level
- var::StringView
key
#
progress_callback() constinline
const api::ProgressCallback * printer::Printer::progress_callback () const
Type: const api::ProgressCallback *
#
progress_key() constinline
var::StringView printer::Printer::progress_key () const
Type: var::StringView
#
set_color_code(ColorCode code)inline
void printer::Printer::set_color_code (ColorCode code)
Type: void
Parameters:
- ColorCode
code
#
set_color_code(u32 code)void printer::Printer::set_color_code (u32 code)
Type: void
Parameters:
u32
code
#
set_flags(Flags value)inline
Printer & printer::Printer::set_flags (Flags value)
Type: Printer &
Parameters:
- Flags
value
#
set_format_code(FormatType code)inline
void printer::Printer::set_format_code (FormatType code)
Type: void
Parameters:
- FormatType
code
#
set_format_code(u32 code)void printer::Printer::set_format_code (u32 code)
Type: void
Parameters:
u32
code
#
set_indent_size(u16 value)inline
Printer & printer::Printer::set_indent_size (u16 value)
Type: Printer &
Parameters:
u16
value
#
set_progress_key(var::StringView progress_key)inline
Printer & printer::Printer::set_progress_key (var::StringView progress_key)
Type: Printer &
Parameters:
- var::StringView
progress_key
#
set_progress_width(u16 value)inline
Printer & printer::Printer::set_progress_width (u16 value)
Type: Printer &
Parameters:
u16
value
#
set_verbose_level(Level level)inline
Printer & printer::Printer::set_verbose_level (Level level)
Type: Printer &
Parameters:
- Level
level
#
set_verbose_level(var::StringView level)Printer & printer::Printer::set_verbose_level (var::StringView level)
Type: Printer &
Parameters:
- var::StringView
level
#
terminal_color_code(ColorCode code)var::StringView printer::Printer::terminal_color_code (ColorCode code)
Type: var::StringView
Parameters:
- ColorCode
code
#
trace(const char *function, int line, var::StringView message)Printer & printer::Printer::trace (const char *function, int line, var::StringView message)
Type: Printer &
Parameters:
const char *
function
int
line
- var::StringView
message
#
update_progress(int progress, int total)bool printer::Printer::update_progress (int progress, int total)
Type: bool
Parameters:
int
progress
int
total
#
verbose_level() constinline
Level printer::Printer::verbose_level () const
Type: Level
#
warning(var::StringView a)Printer & printer::Printer::warning (var::StringView a)
Type: Printer &
Parameters:
Static Functions
#
color_code(var::StringView color)static ColorCode printer::Printer::color_code (var::StringView color)
Type: ColorCode
Parameters:
- var::StringView
color
#
get_bitmap_pixel_character(u32 color, u8 bits_per_pixel)static char printer::Printer::get_bitmap_pixel_character (u32 color, u8 bits_per_pixel)
Type: char
Parameters:
u32
color
u8
bits_per_pixel
#
get_bitmap_pixel_color(char c, u8 bits_per_pixel)static u32 printer::Printer::get_bitmap_pixel_color (char c, u8 bits_per_pixel)
Type: u32
Parameters:
char
c
u8
bits_per_pixel
#
update_progress_callback(void *context, int progress, int total)inline
static bool printer::Printer::update_progress_callback (void *context, int progress, int total)
Type: bool
Parameters:
void *
context
int
progress
int
total