Grid 0.7.0
Logger Class Reference

#include <Log.h>

Inheritance diagram for Logger:
GridLogger

Public Member Functions

std::string background ()
std::string evidence ()
std::string colour ()
 Logger (std::string topNm, int on, std::string nm, Colours &col_class, std::string col)
void Active (int on)
int isActive (void)
void Reset (void)
void TimingMode (int on)
void setTopWidth (const int w)
void setChanWidth (const int w)

Static Public Member Functions

static void Timestamp (int on)

Data Fields

GridStopWatch LocalStopWatch
GridStopWatchStopWatch

Static Public Attributes

static GridStopWatch GlobalStopWatch
static std::ostream devnull

Protected Attributes

ColoursPainter
int active
int timing_mode
int topWidth
int chanWidth
std::string name
std::string topName
std::string COLOUR

Static Protected Attributes

static int timestamp

Friends

std::ostream & operator<< (std::ostream &stream, Logger &log)

Detailed Description

Definition at line 83 of file Log.h.

Constructor & Destructor Documentation

◆ Logger()

Logger::Logger ( std::string topNm,
int on,
std::string nm,
Colours & col_class,
std::string col )
inline

Definition at line 103 of file Log.h.

References active, COLOUR, GlobalStopWatch, name, Painter, StopWatch, timing_mode, and topName.

Referenced by GridLogger::GridLogger(), and operator<<.

Member Function Documentation

◆ background()

std::string Logger::background ( )
inline

Definition at line 99 of file Log.h.

References Painter.

◆ evidence()

std::string Logger::evidence ( )
inline

Definition at line 100 of file Log.h.

References Painter.

◆ colour()

std::string Logger::colour ( )
inline

Definition at line 101 of file Log.h.

References COLOUR, and Painter.

◆ Active()

void Logger::Active ( int on)
inline

Definition at line 113 of file Log.h.

References active.

◆ isActive()

int Logger::isActive ( void )
inline

Definition at line 114 of file Log.h.

References active.

◆ Timestamp()

void Logger::Timestamp ( int on)
inlinestatic

Definition at line 115 of file Log.h.

References timestamp.

Referenced by GridLogTimestamp().

◆ Reset()

void Logger::Reset ( void )
inline

Definition at line 116 of file Log.h.

References StopWatch.

Referenced by TimingMode().

◆ TimingMode()

void Logger::TimingMode ( int on)
inline

Definition at line 120 of file Log.h.

References LocalStopWatch, Reset(), StopWatch, and timing_mode.

◆ setTopWidth()

void Logger::setTopWidth ( const int w)
inline

Definition at line 127 of file Log.h.

References topWidth.

◆ setChanWidth()

void Logger::setChanWidth ( const int w)
inline

Definition at line 128 of file Log.h.

References chanWidth.

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
Logger & log )
friend

Definition at line 130 of file Log.h.

References devnull, log(), and Logger().

Field Documentation

◆ Painter

Colours& Logger::Painter
protected

Definition at line 85 of file Log.h.

Referenced by background(), colour(), evidence(), and Logger().

◆ active

int Logger::active
protected

Definition at line 86 of file Log.h.

Referenced by Active(), isActive(), and Logger().

◆ timing_mode

int Logger::timing_mode
protected

Definition at line 87 of file Log.h.

Referenced by Logger(), and TimingMode().

◆ topWidth

int Logger::topWidth
protected

Definition at line 88 of file Log.h.

Referenced by setTopWidth().

◆ chanWidth

int Logger::chanWidth
protected

Definition at line 88 of file Log.h.

Referenced by setChanWidth().

◆ timestamp

int Logger::timestamp
staticprotected

Definition at line 89 of file Log.h.

Referenced by Timestamp().

◆ name

std::string Logger::name
protected

Definition at line 90 of file Log.h.

Referenced by Logger().

◆ topName

std::string Logger::topName
protected

Definition at line 90 of file Log.h.

Referenced by Logger().

◆ COLOUR

std::string Logger::COLOUR
protected

Definition at line 91 of file Log.h.

Referenced by colour(), and Logger().

◆ GlobalStopWatch

GridStopWatch Logger::GlobalStopWatch
static

Definition at line 94 of file Log.h.

Referenced by Grid_init(), and Logger().

◆ LocalStopWatch

GridStopWatch Logger::LocalStopWatch

Definition at line 95 of file Log.h.

Referenced by TimingMode().

◆ StopWatch

GridStopWatch* Logger::StopWatch

Definition at line 96 of file Log.h.

Referenced by Logger(), Reset(), and TimingMode().

◆ devnull

std::ostream Logger::devnull
static

Definition at line 97 of file Log.h.

Referenced by operator<<.


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