SPH
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
Console Struct Reference

#include <Logger.h>

Public Types

enum class  Foreground {
  BLACK = 30 , RED = 31 , GREEN = 32 , YELLOW = 33 ,
  BLUE = 34 , MAGENTA = 35 , CYAN = 36 , LIGHT_GRAY = 37 ,
  DARK_GRAY = 90 , LIGHT_RED = 91 , LIGHT_GREEN = 92 , LIGHT_YELLOW = 93 ,
  LIGHT_BLUE = 94 , LIGHT_MAGENTA = 95 , LIGHT_CYAN = 96 , WHITE = 97 ,
  DEFAULT = 39 , UNCHANGED = 0
}
 
enum class  Background {
  RED = 41 , GREEN = 42 , BLUE = 44 , DEFAULT = 49 ,
  UNCHANGED = 0
}
 
enum class  Series { NORMAL = 0 , BOLD = 1 }
 

Public Member Functions

 Console ()=default
 
 Console (const Foreground fg)
 
 Console (const Background bg)
 
 Console (const Series series)
 

Public Attributes

enum Console::Foreground fg = Foreground::UNCHANGED
 
enum Console::Background bg = Background::UNCHANGED
 
enum Console::Series series = Series::NORMAL
 

Friends

std::ostream & operator<< (std::ostream &stream, const Console &mod)
 

Detailed Description

Definition at line 70 of file Logger.h.

Member Enumeration Documentation

◆ Background

enum Console::Background
strong
Enumerator
RED 
GREEN 
BLUE 
DEFAULT 
UNCHANGED 

Definition at line 92 of file Logger.h.

◆ Foreground

enum Console::Foreground
strong
Enumerator
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
LIGHT_GRAY 
DARK_GRAY 
LIGHT_RED 
LIGHT_GREEN 
LIGHT_YELLOW 
LIGHT_BLUE 
LIGHT_MAGENTA 
LIGHT_CYAN 
WHITE 
DEFAULT 
UNCHANGED 

Definition at line 71 of file Logger.h.

◆ Series

enum Console::Series
strong
Enumerator
NORMAL 
BOLD 

Definition at line 100 of file Logger.h.

Constructor & Destructor Documentation

◆ Console() [1/4]

Console::Console ( )
default

◆ Console() [2/4]

Console::Console ( const Foreground  fg)
inline

Definition at line 107 of file Logger.h.

◆ Console() [3/4]

Console::Console ( const Background  bg)
inline

Definition at line 110 of file Logger.h.

◆ Console() [4/4]

Console::Console ( const Series  series)
inline

Definition at line 113 of file Logger.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const Console mod 
)
friend

Definition at line 116 of file Logger.h.

Member Data Documentation

◆ bg

◆ fg

◆ series

enum Console::Series Console::series = Series::NORMAL

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