KiCad PCB EDA Suite
Loading...
Searching...
No Matches
CONSOLE_LOG Class Reference

#include <console_log.h>

Public Types

enum  COLOR {
  RED = 0 , GREEN , DEFAULT , RED = 0 ,
  GREEN , DEFAULT
}
 
enum  COLOR {
  RED = 0 , GREEN , DEFAULT , RED = 0 ,
  GREEN , DEFAULT
}
 

Public Member Functions

 CONSOLE_LOG ()
 
void PrintProgress (const wxString &aMessage)
 
void Print (const wxString &aMessage)
 
void SetColor (COLOR color)
 
 CONSOLE_LOG ()
 
void PrintProgress (const wxString &aMessage)
 
void Print (const wxString &aMessage)
 
void SetColor (COLOR color)
 

Private Member Functions

void eraseLastLine ()
 
void eraseLastLine ()
 

Private Attributes

bool m_lastLineIsProgressBar = false
 
std::mutex m_lock
 

Detailed Description

Definition at line 35 of file console_log.h.

Member Enumeration Documentation

◆ COLOR [1/2]

Enumerator
RED 
GREEN 
DEFAULT 
RED 
GREEN 
DEFAULT 

Definition at line 38 of file console_log.h.

◆ COLOR [2/2]

Enumerator
RED 
GREEN 
DEFAULT 
RED 
GREEN 
DEFAULT 

Definition at line 40 of file drc_proto.h.

Constructor & Destructor Documentation

◆ CONSOLE_LOG() [1/2]

CONSOLE_LOG::CONSOLE_LOG ( )
inline

Definition at line 44 of file console_log.h.

◆ CONSOLE_LOG() [2/2]

CONSOLE_LOG::CONSOLE_LOG ( )
inline

Definition at line 46 of file drc_proto.h.

Member Function Documentation

◆ eraseLastLine() [1/2]

void CONSOLE_LOG::eraseLastLine ( )
inlineprivate

Definition at line 85 of file console_log.h.

Referenced by Print(), and PrintProgress().

◆ eraseLastLine() [2/2]

void CONSOLE_LOG::eraseLastLine ( )
inlineprivate

Definition at line 87 of file drc_proto.h.

◆ Print() [1/2]

void CONSOLE_LOG::Print ( const wxString &  aMessage)
inline

Definition at line 58 of file console_log.h.

References eraseLastLine(), and m_lastLineIsProgressBar.

Referenced by CONSOLE_MSG_REPORTER::Report(), and runDRCProto().

◆ Print() [2/2]

void CONSOLE_LOG::Print ( const wxString &  aMessage)
inline

Definition at line 60 of file drc_proto.h.

References eraseLastLine(), and m_lastLineIsProgressBar.

◆ PrintProgress() [1/2]

void CONSOLE_LOG::PrintProgress ( const wxString &  aMessage)
inline

Definition at line 46 of file console_log.h.

References eraseLastLine(), and m_lastLineIsProgressBar.

Referenced by CONSOLE_PROGRESS_REPORTER::updateUI().

◆ PrintProgress() [2/2]

void CONSOLE_LOG::PrintProgress ( const wxString &  aMessage)
inline

Definition at line 48 of file drc_proto.h.

References eraseLastLine(), and m_lastLineIsProgressBar.

◆ SetColor() [1/2]

void CONSOLE_LOG::SetColor ( COLOR  color)
inline

Definition at line 70 of file console_log.h.

References color, DEFAULT, GREEN, and RED.

Referenced by CONSOLE_MSG_REPORTER::Report(), and CONSOLE_PROGRESS_REPORTER::updateUI().

◆ SetColor() [2/2]

void CONSOLE_LOG::SetColor ( COLOR  color)
inline

Definition at line 72 of file drc_proto.h.

References color, DEFAULT, GREEN, and RED.

Member Data Documentation

◆ m_lastLineIsProgressBar

bool CONSOLE_LOG::m_lastLineIsProgressBar = false
private

Definition at line 91 of file console_log.h.

Referenced by Print(), and PrintProgress().

◆ m_lock

std::mutex CONSOLE_LOG::m_lock
private

Definition at line 92 of file console_log.h.


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