1 #ifndef INFO_BASICS_HPP 2 #define INFO_BASICS_HPP 35 std::cout << comment << text <<
"\n";
46 template <
class T1,
class T2>
49 std::cout << comment <<
"-" << key <<
" " << value <<
"\n";
58 static void LogComment(std::string text, std::string color)
62 std::clog << std::fixed
63 << std::setprecision(6)
102 static void Warning(std::string text, std::string note =
"")
113 static void Title(std::string title)
126 std::cout << comment << std::string(n,
'=') <<
"\n";
static void Title(std::string title)
Display title and Line.
Definition: Basics.hpp:113
static const std::string green
Definition: Colors.hpp:13
static void Comment(std::string text)
Display commented line.
Definition: Basics.hpp:33
static const std::string bwhite
Definition: Colors.hpp:16
static const std::string comment
standard comment string (default: #)
Definition: Basics.hpp:20
static void LogComment(std::string text, std::string color)
Colored comment to std::clog with current program time.
Definition: Basics.hpp:58
static std::string Colorize(std::string text, std::string color)
Add prefix and suffix for color display in Linux terminal.
Definition: Colors.hpp:33
static std::string StartColor(std::string color)
returns selected color
Definition: Colors.hpp:44
static std::string StopColor()
resets color to default normal
Definition: Colors.hpp:53
static const std::string red
Definition: Colors.hpp:14
static void LogAccomplished(std::string text="... done")
LogComment with green color.
Definition: Basics.hpp:91
static bool verbose
Definition: Basics.hpp:26
Basic info functions.
Definition: Basics.hpp:14
static void Comment(T1 key, T2 value)
Comment for displaying map item.
Definition: Basics.hpp:47
static void Line(int n=40)
Display line of n char (default char '=')
Definition: Basics.hpp:124
static void LogBegining(std::string text)
LogComment with red color.
Definition: Basics.hpp:81
static double Time()
returns current clock time (in seconds)
Definition: Time.hpp:32
static void Warning(std::string text, std::string note="")
Warning sent to std::cout.
Definition: Basics.hpp:102