Guitar
Classes | Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
ProcessThread Class Reference
Inheritance diagram for ProcessThread:
Inheritance graph
[legend]
Collaboration diagram for ProcessThread:
Collaboration graph
[legend]

Classes

class  StreamThread
 

Public Member Functions

 ProcessThread ()=default
 
 ~ProcessThread () override
 
void Start (QString const &cmd, bool input)
 
void WriteInput (char const *ptr, int len)
 
int ReadOutput (char *ptr, int len)
 
void CloseInput ()
 
int WaitForExit ()
 
bool IsRunning ()
 
- Public Member Functions inherited from Thread
 Thread ()
 
virtual ~Thread ()
 
virtual void start ()
 
virtual void stop ()
 
virtual void join ()
 
virtual void terminate ()
 
virtual void detach ()
 
bool running () const
 

Protected Member Functions

void CloseOutput ()
 
void run () override
 
void WaitForStart ()
 
- Protected Member Functions inherited from Thread
virtual bool interrupted () const
 

Private Attributes

Event start_event
 
QString command
 
DWORD exit_code = 0
 
HANDLE hOutputRead
 
HANDLE hInputWrite
 
HANDLE hErrorWrite
 
bool isProcessRunning = false
 
StreamThread stream
 

Friends

class StreamThread
 

Additional Inherited Members

- Static Public Member Functions inherited from Thread
static void * run_ (void *arg)
 
- Public Attributes inherited from Thread
volatile bool _interrupted
 
bool _running
 
pthread_t _thread_handle
 

Constructor & Destructor Documentation

◆ ProcessThread()

ProcessThread::ProcessThread ( )
default

◆ ~ProcessThread()

ProcessThread::~ProcessThread ( )
inlineoverride
Here is the call graph for this function:

Member Function Documentation

◆ CloseInput()

void ProcessThread::CloseInput ( )
inline

◆ CloseOutput()

void ProcessThread::CloseOutput ( )
inlineprotected

◆ IsRunning()

bool ProcessThread::IsRunning ( )
inline

◆ ReadOutput()

int ProcessThread::ReadOutput ( char *  ptr,
int  len 
)
inline
Here is the call graph for this function:

◆ run()

void ProcessThread::run ( )
inlineoverrideprotectedvirtual

Implements Thread.

Here is the call graph for this function:

◆ Start()

void ProcessThread::Start ( QString const &  cmd,
bool  input 
)
inline
Here is the call graph for this function:

◆ WaitForExit()

int ProcessThread::WaitForExit ( )
inline
Here is the call graph for this function:

◆ WaitForStart()

void ProcessThread::WaitForStart ( )
inlineprotected
Here is the call graph for this function:

◆ WriteInput()

void ProcessThread::WriteInput ( char const *  ptr,
int  len 
)
inline

Friends And Related Function Documentation

◆ StreamThread

friend class StreamThread
friend

Member Data Documentation

◆ command

QString ProcessThread::command
private

◆ exit_code

DWORD ProcessThread::exit_code = 0
private

◆ hErrorWrite

HANDLE ProcessThread::hErrorWrite
private

◆ hInputWrite

HANDLE ProcessThread::hInputWrite
private

◆ hOutputRead

HANDLE ProcessThread::hOutputRead
private

◆ isProcessRunning

bool ProcessThread::isProcessRunning = false
private

◆ start_event

Event ProcessThread::start_event
private

◆ stream

StreamThread ProcessThread::stream
private

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