Skip to main content

printer::Printer

Types

FlagGuard#

using printer::Printer::FlagGuard =  FlagScope 

Type: FlagScope

IsNewline#

  • no
  • yes

LevelGuard#

using 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:

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:

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:

enable_flags(Flags value)#

inline

Printer & printer::Printer::enable_flags (Flags value)

Type: Printer &

Parameters:

error(api::PrivateExecutionContext result, u32 line_number)#

Printer & printer::Printer::error (api::PrivateExecutionContext result, u32 line_number)

Type: Printer &

Parameters:

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() const#

inline

Flags printer::Printer::flags () const

Type: Flags

indent_size() const#

inline

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:

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:

message(var::StringView a)#

Printer & printer::Printer::message (var::StringView a)

Type: Printer &

Parameters:

newline()#

Printer & printer::Printer::newline ()

Type: Printer &

o_flags() const#

inline

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:

open_array(var::StringView key, Level level=Level::fatal)#

Printer & printer::Printer::open_array (var::StringView key, Level level=Level::fatal)

Type: Printer &

Parameters:

open_object(var::StringView key, Level level=Level::fatal)#

Printer & printer::Printer::open_object (var::StringView key, Level level=Level::fatal)

Type: Printer &

Parameters:

operator<<(const api::Error &error_context)#

Printer & printer::Printer::operator<< (const api::Error &error_context)

Type: Printer &

Parameters:

operator<<(const var::DataInfo &a)#

Printer & printer::Printer::operator<< (const var::DataInfo &a)

Type: Printer &

Parameters:

operator<<(const var::String &a)#

Printer & printer::Printer::operator<< (const var::String &a)

Type: Printer &

Parameters:

operator<<(const var::StringList &a)#

Printer & printer::Printer::operator<< (const var::StringList &a)

Type: Printer &

Parameters:

operator<<(const var::StringViewList &a)#

Printer & printer::Printer::operator<< (const var::StringViewList &a)

Type: Printer &

Parameters:

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:

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:

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:

progress_callback() const#

inline

const api::ProgressCallback * printer::Printer::progress_callback () const

Type: const api::ProgressCallback *

progress_key() const#

inline

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:

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:

set_format_code(FormatType code)#

inline

void printer::Printer::set_format_code (FormatType code)

Type: void

Parameters:

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:

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:

set_verbose_level(var::StringView level)#

Printer & printer::Printer::set_verbose_level (var::StringView level)

Type: Printer &

Parameters:

terminal_color_code(ColorCode code)#

var::StringView printer::Printer::terminal_color_code (ColorCode code)

Type: var::StringView

Parameters:

trace(const char *function, int line, var::StringView message)#

Printer & printer::Printer::trace (const char *function, int line, var::StringView message)

Type: Printer &

Parameters:

update_progress(int progress, int total)#

bool printer::Printer::update_progress (int progress, int total)

Type: bool

Parameters:

  • int progress
  • int total

verbose_level() const#

inline

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:

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