#include <format_manager.hpp>
|
| 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) |
| |
Definition at line 13 of file format_manager.hpp.
◆ get_format()
| static Format FormatterManager::get_format |
( |
| ) |
|
|
static |
◆ get_formatter()
| static std::shared_ptr< IFormatter > FormatterManager::get_formatter |
( |
| ) |
|
|
static |
◆ set_format()
| static void FormatterManager::set_format |
( |
Format |
f | ) |
|
|
static |
◆ set_formatter()
| static void FormatterManager::set_formatter |
( |
std::shared_ptr< IFormatter > |
f | ) |
|
|
static |
◆ time()
| static void FormatterManager::time |
( |
const std::string & |
str, |
|
|
std::chrono::high_resolution_clock::time_point |
start, |
|
|
std::ostream & |
out = std::cout |
|
) |
| |
|
static |
◆ warn()
| static void FormatterManager::warn |
( |
const std::string & |
str | ) |
|
|
static |
◆ write() [1/3]
| static void FormatterManager::write |
( |
const std::string & |
str, |
|
|
std::ostream & |
out = std::cout |
|
) |
| |
|
static |
◆ 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 |
◆ 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 |
The documentation for this class was generated from the following file: