Guitar
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
UnixPtyProcess Class Reference

#include <UnixPtyProcess.h>

Inheritance diagram for UnixPtyProcess:
Inheritance graph
[legend]
Collaboration diagram for UnixPtyProcess:
Collaboration graph
[legend]

Classes

struct  Private
 

Public Member Functions

 UnixPtyProcess ()
 
 ~UnixPtyProcess () override
 
bool isRunning () const override
 
void writeInput (char const *ptr, int len) override
 
int readOutputStreaming (char *ptr, int len) override
 
void start (const std::string &cmd, const std::string &env, bool use_input) override
 
bool wait (unsigned long time=ULONG_MAX) override
 
void stop () override
 
int getExitCode () const override
 
- Public Member Functions inherited from AbstractPtyProcess
virtual ~AbstractPtyProcess ()
 
void setChangeDir (QString const &dir)
 
void setCompletedHandler (std::function< void(bool, const QVariant &)> fn, QVariant const &userdata)
 
void notifyCompleted ()
 
std::string getMessage () const
 
void clearMessage ()
 
std::vector< char > const & stdout_bytes () const
 
std::vector< char > const & stderr_bytes () const
 

Protected Member Functions

void run () override
 
- Protected Member Functions inherited from AbstractPtyProcess
void writeOutput (char const *buf, size_t len)
 

Private Member Functions

bool wait_ (unsigned long time=ULONG_MAX)
 
void stop_ ()
 

Private Attributes

Privatem
 

Additional Inherited Members

- Protected Attributes inherited from AbstractPtyProcess
std::mutex mutex_
 
std::condition_variable cond_
 
QString change_dir_
 
QVariant user_data_
 
std::deque< char > output_queue_
 
std::vector< char > output_vector_
 
std::vector< char > stdout_bytes_
 
std::vector< char > stderr_bytes_
 
std::function< void(bool, const QVariant &)> completed_fn_
 

Constructor & Destructor Documentation

◆ UnixPtyProcess()

UnixPtyProcess::UnixPtyProcess ( )

◆ ~UnixPtyProcess()

UnixPtyProcess::~UnixPtyProcess ( )
override
Here is the call graph for this function:

Member Function Documentation

◆ getExitCode()

int UnixPtyProcess::getExitCode ( ) const
overridevirtual

Implements AbstractPtyProcess.

◆ isRunning()

bool UnixPtyProcess::isRunning ( ) const
overridevirtual

Implements AbstractPtyProcess.

◆ readOutputStreaming()

int UnixPtyProcess::readOutputStreaming ( char *  ptr,
int  len 
)
overridevirtual

Implements AbstractPtyProcess.

◆ run()

void UnixPtyProcess::run ( )
overrideprotected
Here is the call graph for this function:

◆ start()

void UnixPtyProcess::start ( const std::string &  cmd,
const std::string &  env,
bool  use_input 
)
overridevirtual

Implements AbstractPtyProcess.

Here is the call graph for this function:

◆ stop()

void UnixPtyProcess::stop ( )
overridevirtual

Implements AbstractPtyProcess.

Here is the call graph for this function:

◆ stop_()

void UnixPtyProcess::stop_ ( )
private
Here is the call graph for this function:

◆ wait()

bool UnixPtyProcess::wait ( unsigned long  time = ULONG_MAX)
overridevirtual

Implements AbstractPtyProcess.

Here is the call graph for this function:

◆ wait_()

bool UnixPtyProcess::wait_ ( unsigned long  time = ULONG_MAX)
private

◆ writeInput()

void UnixPtyProcess::writeInput ( char const *  ptr,
int  len 
)
overridevirtual

Implements AbstractPtyProcess.

Member Data Documentation

◆ m

Private* UnixPtyProcess::m
private

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