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 ()
 
void PrintProgress (const wxString &aMessage)
 
void Print (const wxString &aMessage)
 
void SetColor (COLOR color)
 

Private Member Functions

void eraseLastLine ()
 

Private Attributes

bool m_lastLineIsProgressBar = false
 
std::mutex m_lock
 

Detailed Description

Definition at line 87 of file board_test_utils.h.

Member Enumeration Documentation

◆ COLOR

Enumerator
RED 
GREEN 
DEFAULT 

Definition at line 90 of file board_test_utils.h.

Constructor & Destructor Documentation

◆ CONSOLE_LOG()

KI_TEST::CONSOLE_LOG::CONSOLE_LOG ( )
inline

Definition at line 97 of file board_test_utils.h.

Member Function Documentation

◆ eraseLastLine()

void KI_TEST::CONSOLE_LOG::eraseLastLine ( )
inlineprivate

Definition at line 135 of file board_test_utils.h.

Referenced by Print(), and PrintProgress().

◆ Print()

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

Definition at line 111 of file board_test_utils.h.

References eraseLastLine(), and m_lastLineIsProgressBar.

Referenced by KI_TEST::CONSOLE_MSG_REPORTER::Report().

◆ PrintProgress()

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

Definition at line 99 of file board_test_utils.h.

References eraseLastLine(), and m_lastLineIsProgressBar.

◆ SetColor()

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

Definition at line 123 of file board_test_utils.h.

References color, DEFAULT, GREEN, and RED.

Referenced by KI_TEST::CONSOLE_MSG_REPORTER::Report().

Member Data Documentation

◆ m_lastLineIsProgressBar

bool KI_TEST::CONSOLE_LOG::m_lastLineIsProgressBar = false
private

Definition at line 141 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 142 of file board_test_utils.h.


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