Majoranapp
A C++ library for studying MZM in non-interacting systems
BasicsInfo Class Reference

Basic info functions. More...

#include <Basics.hpp>

Inheritance diagram for BasicsInfo:

Static Public Member Functions

static void Comment (std::string text)
 Display commented line. More...
 
template<class T1 , class T2 >
static void Comment (T1 key, T2 value)
 Comment for displaying map item. More...
 
static void LogComment (std::string text, std::string color)
 Colored comment to std::clog with current program time. More...
 
static void LogBegining (std::string text)
 LogComment with red color. More...
 
static void LogAccomplished (std::string text="... done")
 LogComment with green color. More...
 
static void Warning (std::string text, std::string note="")
 Warning sent to std::cout. More...
 
static void Title (std::string title)
 Display title and Line. More...
 
static void Line (int n=40)
 Display line of n char (default char '=') More...
 

Static Public Attributes

static bool verbose {false}
 

Static Protected Attributes

static const std::string comment {"# "}
 standard comment string (default: #) More...
 

Detailed Description

Basic info functions.

Member Function Documentation

◆ Comment() [1/2]

static void BasicsInfo::Comment ( std::string  text)
inlinestatic

Display commented line.

Parameters
texttext to display

◆ Comment() [2/2]

template<class T1 , class T2 >
static void BasicsInfo::Comment ( T1  key,
T2  value 
)
inlinestatic

Comment for displaying map item.

Template Parameters
T1type of key
T2type of value
Parameters
keyitem key
valueitem value

◆ Line()

static void BasicsInfo::Line ( int  n = 40)
inlinestatic

Display line of n char (default char '=')

Parameters
nnumber of =

◆ LogAccomplished()

static void BasicsInfo::LogAccomplished ( std::string  text = "... done")
inlinestatic

LogComment with green color.

Parameters
text

◆ LogBegining()

static void BasicsInfo::LogBegining ( std::string  text)
inlinestatic

LogComment with red color.

Parameters
text

◆ LogComment()

static void BasicsInfo::LogComment ( std::string  text,
std::string  color 
)
inlinestatic

Colored comment to std::clog with current program time.

Parameters
texttext to log
colorcolor of the text

◆ Title()

static void BasicsInfo::Title ( std::string  title)
inlinestatic

Display title and Line.

Parameters
title

◆ Warning()

static void BasicsInfo::Warning ( std::string  text,
std::string  note = "" 
)
inlinestatic

Warning sent to std::cout.

Parameters
texttext to display (with red color)
notenote (with white color)

Member Data Documentation

◆ comment

const std::string BasicsInfo::comment {"# "}
staticprotected

standard comment string (default: #)

◆ verbose

bool BasicsInfo::verbose {false}
static

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