Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
Loading...
Searching...
No Matches
adaptyst::Terminal Class Reference

#include <print.hpp>

Public Member Functions

void print_notice ()
 
void log (std::string message, Identifiable *source, std::string log_type)
 
void print (std::string message, bool sub, bool error, bool same_line=false)
 
void print (std::string message, bool sub, bool error, Identifiable *source, std::string log_type)
 
const char * get_log_dir ()
 
void set_log_dir (fs::path log_dir)
 

Static Public Member Functions

static void init (bool batch, bool formatted, std::string version, fs::path log_dir)
 

Static Public Attributes

static std::unique_ptr< Terminalinstance = nullptr
 

Member Function Documentation

◆ get_log_dir()

const char * adaptyst::Terminal::get_log_dir ( )

◆ init()

void adaptyst::Terminal::init ( bool batch,
bool formatted,
std::string version,
fs::path log_dir )
static

◆ log()

void adaptyst::Terminal::log ( std::string message,
Identifiable * source,
std::string log_type )

◆ print() [1/2]

void adaptyst::Terminal::print ( std::string message,
bool sub,
bool error,
bool same_line = false )

Prints a message.

Parameters
messageA string to be printed.
subIndicates whether this message belongs to a subsection (i.e. whether it should be printed with the "->" prefix instead of "==>").
errorIndicates whether this message is an error.
same_lineIndicates whether this message should be printed in the current terminal line rather than in a new line. Ignored if the batch mode is enabled.

◆ print() [2/2]

void adaptyst::Terminal::print ( std::string message,
bool sub,
bool error,
Identifiable * source,
std::string log_type )

◆ print_notice()

void adaptyst::Terminal::print_notice ( )

Prints the version and licensing notice.

◆ set_log_dir()

void adaptyst::Terminal::set_log_dir ( fs::path log_dir)

Member Data Documentation

◆ instance

std::unique_ptr< Terminal > adaptyst::Terminal::instance = nullptr
static

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