ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
FormatterManager Class Reference

#include <format_manager.hpp>

Static Public Member Functions

static void set_formatter (std::shared_ptr< IFormatter > f)
 
static std::shared_ptr< IFormatter > get_formatter ()
 
static void set_format (Format f)
 
static Format get_format ()
 
template<typename T >
static void write (const std::string &template_str, const std::vector< T > &data, enum Format effective=Format::AUTO, RowColorFn color_fn=nullptr, std::ostream &out=std::cout)
 
template<typename T >
static void write (const std::string &template_str, const T &item, Format effective=Format::AUTO, RowColorFn color_fn=nullptr, std::ostream &out=std::cout)
 
static void write (const std::string &str, std::ostream &out=std::cout)
 
static void warn (const std::string &str)
 
static void time (const std::string &str, std::chrono::high_resolution_clock::time_point start, std::ostream &out=std::cout)
 

Detailed Description

Definition at line 13 of file format_manager.hpp.

Member Function Documentation

◆ get_format()

static Format FormatterManager::get_format ( )
static

Definition at line 33 of file format_manager.hpp.

◆ get_formatter()

static std::shared_ptr< IFormatter > FormatterManager::get_formatter ( )
static

Definition at line 19 of file format_manager.hpp.

◆ set_format()

static void FormatterManager::set_format ( Format  f)
static

Definition at line 29 of file format_manager.hpp.

◆ set_formatter()

static void FormatterManager::set_formatter ( std::shared_ptr< IFormatter >  f)
static

Definition at line 15 of file format_manager.hpp.

◆ time()

static void FormatterManager::time ( const std::string &  str,
std::chrono::high_resolution_clock::time_point  start,
std::ostream &  out = std::cout 
)
static

Definition at line 104 of file format_manager.hpp.

◆ warn()

static void FormatterManager::warn ( const std::string &  str)
static

Definition at line 92 of file format_manager.hpp.

◆ write() [1/3]

static void FormatterManager::write ( const std::string &  str,
std::ostream &  out = std::cout 
)
static

Definition at line 88 of file format_manager.hpp.

◆ write() [2/3]

template<typename T >
static void FormatterManager::write ( const std::string &  template_str,
const std::vector< T > &  data,
enum Format  effective = Format::AUTO,
RowColorFn  color_fn = nullptr,
std::ostream &  out = std::cout 
)
static

Definition at line 38 of file format_manager.hpp.

◆ write() [3/3]

template<typename T >
static void FormatterManager::write ( const std::string &  template_str,
const T &  item,
Format  effective = Format::AUTO,
RowColorFn  color_fn = nullptr,
std::ostream &  out = std::cout 
)
static

Definition at line 78 of file format_manager.hpp.


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