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

#include <board_test_utils.h>

Public Types

enum  COLOR { RED = 0 , GREEN , DEFAULT }
 

Public Member Functions

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

Private Member Functions

void eraseLastLine ()
 

Private Attributes

bool m_silenceConsoleOutput = true
 
bool m_lastLineIsProgressBar = false
 
std::mutex m_lock
 
wxString m_logContents
 

Detailed Description

Definition at line 97 of file board_test_utils.h.

Member Enumeration Documentation

◆ COLOR

Enumerator
RED 
GREEN 
DEFAULT 

Definition at line 100 of file board_test_utils.h.

Constructor & Destructor Documentation

◆ CONSOLE_LOG()

KI_TEST::CONSOLE_LOG::CONSOLE_LOG ( )
inline

Definition at line 107 of file board_test_utils.h.

Member Function Documentation

◆ eraseLastLine()

void KI_TEST::CONSOLE_LOG::eraseLastLine ( )
inlineprivate

Definition at line 163 of file board_test_utils.h.

References m_silenceConsoleOutput.

Referenced by Print(), and PrintProgress().

◆ GetLogContents()

const wxString & KI_TEST::CONSOLE_LOG::GetLogContents ( ) const
inline

Definition at line 109 of file board_test_utils.h.

References m_logContents.

◆ Print()

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

◆ PrintProgress()

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

◆ SetColor()

void KI_TEST::CONSOLE_LOG::SetColor ( COLOR color)
inline

Definition at line 145 of file board_test_utils.h.

References DEFAULT, GREEN, m_silenceConsoleOutput, and RED.

Member Data Documentation

◆ m_lastLineIsProgressBar

bool KI_TEST::CONSOLE_LOG::m_lastLineIsProgressBar = false
private

Definition at line 173 of file board_test_utils.h.

Referenced by Print(), and PrintProgress().

◆ m_lock

std::mutex KI_TEST::CONSOLE_LOG::m_lock
private

Definition at line 174 of file board_test_utils.h.

◆ m_logContents

wxString KI_TEST::CONSOLE_LOG::m_logContents
private

Definition at line 175 of file board_test_utils.h.

Referenced by GetLogContents(), and Print().

◆ m_silenceConsoleOutput

bool KI_TEST::CONSOLE_LOG::m_silenceConsoleOutput = true
private

Definition at line 172 of file board_test_utils.h.

Referenced by eraseLastLine(), Print(), PrintProgress(), and SetColor().


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