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

This thread handles consuming the input streams from the launched process. More...

Inheritance diagram for STDSTREAM_THREAD:

Public Member Functions

 STDSTREAM_THREAD (wxEvtHandler *aEventHandler, wxProcess *aProcess, wxMessageQueue< DIALOG_EXPORT_STEP_LOG::STATE_MESSAGE > &aMsgQueue)
 
 ~STDSTREAM_THREAD ()
 

Private Member Functions

ExitCode Entry () override
 
void DrainInput ()
 

Private Attributes

wxMessageQueue< DIALOG_EXPORT_STEP_LOG::STATE_MESSAGE > & m_queue
 
wxEvtHandler * m_handler
 
wxProcess * m_process
 
char * m_buffer
 
size_t m_bufferSize
 

Detailed Description

This thread handles consuming the input streams from the launched process.

And generates ui events on the main thread with the content

Definition at line 40 of file dialog_export_step_process.cpp.

Constructor & Destructor Documentation

◆ STDSTREAM_THREAD()

STDSTREAM_THREAD::STDSTREAM_THREAD ( wxEvtHandler *  aEventHandler,
wxProcess *  aProcess,
wxMessageQueue< DIALOG_EXPORT_STEP_LOG::STATE_MESSAGE > &  aMsgQueue 
)
inline

Definition at line 43 of file dialog_export_step_process.cpp.

References m_buffer, m_bufferSize, m_handler, and m_process.

◆ ~STDSTREAM_THREAD()

STDSTREAM_THREAD::~STDSTREAM_THREAD ( )
inline

Definition at line 54 of file dialog_export_step_process.cpp.

References m_buffer.

Member Function Documentation

◆ DrainInput()

void STDSTREAM_THREAD::DrainInput ( )
private

Definition at line 114 of file dialog_export_step_process.cpp.

References m_buffer, m_bufferSize, m_handler, and m_process.

Referenced by Entry().

◆ Entry()

wxThread::ExitCode STDSTREAM_THREAD::Entry ( )
overrideprivate

Member Data Documentation

◆ m_buffer

char* STDSTREAM_THREAD::m_buffer
private

Definition at line 66 of file dialog_export_step_process.cpp.

Referenced by DrainInput(), STDSTREAM_THREAD(), and ~STDSTREAM_THREAD().

◆ m_bufferSize

size_t STDSTREAM_THREAD::m_bufferSize
private

Definition at line 67 of file dialog_export_step_process.cpp.

Referenced by DrainInput(), and STDSTREAM_THREAD().

◆ m_handler

wxEvtHandler* STDSTREAM_THREAD::m_handler
private

Definition at line 64 of file dialog_export_step_process.cpp.

Referenced by DrainInput(), and STDSTREAM_THREAD().

◆ m_process

wxProcess* STDSTREAM_THREAD::m_process
private

Definition at line 65 of file dialog_export_step_process.cpp.

Referenced by DrainInput(), Entry(), and STDSTREAM_THREAD().

◆ m_queue

wxMessageQueue<DIALOG_EXPORT_STEP_LOG::STATE_MESSAGE>& STDSTREAM_THREAD::m_queue
private

Definition at line 63 of file dialog_export_step_process.cpp.

Referenced by Entry().


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