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

#include <ProcessPosix.h>

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

Classes

struct  Private
 

Public Member Functions

 ProcessPosixPty ()
 
 ~ProcessPosixPty ()
 
bool isRunning () const override
 
void writeInput (const char *ptr, int len) override
 
void closeInput ()
 
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
 
void readResult (std::vector< char > *out)
 
std::string outstring () const
 
std::string errstring () const
 
- 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
 

Private Member Functions

void writeStdOut (char const *buf, size_t len)
 
void writeStdErr (char const *buf, size_t len)
 
bool exec_posixpty (std::string const &cmd)
 
 ProcessPosixPty (ProcessPosixPty &&)=delete
 
 ProcessPosixPty (const ProcessPosixPty &)=delete
 
ProcessPosixPtyoperator= (ProcessPosixPty &&)=delete
 
ProcessPosixPtyoperator= (const ProcessPosixPty &)=delete
 

Private Attributes

Privatem
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractPtyProcess
void writeOutput (char const *buf, size_t len)
 
- 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

◆ ProcessPosixPty() [1/3]

ProcessPosixPty::ProcessPosixPty ( ProcessPosixPty &&  )
privatedelete

◆ ProcessPosixPty() [2/3]

ProcessPosixPty::ProcessPosixPty ( const ProcessPosixPty )
privatedelete

◆ ProcessPosixPty() [3/3]

ProcessPosixPty::ProcessPosixPty ( )

◆ ~ProcessPosixPty()

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

Member Function Documentation

◆ closeInput()

void ProcessPosixPty::closeInput ( )

◆ errstring()

std::string ProcessPosixPty::errstring ( ) const

◆ exec_posixpty()

bool ProcessPosixPty::exec_posixpty ( std::string const &  cmd)
private
Here is the call graph for this function:

◆ getExitCode()

int ProcessPosixPty::getExitCode ( ) const
overridevirtual

Implements AbstractPtyProcess.

◆ isRunning()

bool ProcessPosixPty::isRunning ( ) const
overridevirtual

Implements AbstractPtyProcess.

◆ operator=() [1/2]

ProcessPosixPty& ProcessPosixPty::operator= ( const ProcessPosixPty )
privatedelete

◆ operator=() [2/2]

ProcessPosixPty& ProcessPosixPty::operator= ( ProcessPosixPty &&  )
privatedelete

◆ outstring()

std::string ProcessPosixPty::outstring ( ) const

◆ readOutputStreaming()

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

Implements AbstractPtyProcess.

◆ readResult()

void ProcessPosixPty::readResult ( std::vector< char > *  out)

◆ start()

void ProcessPosixPty::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 ProcessPosixPty::stop ( )
overridevirtual

Implements AbstractPtyProcess.

Here is the call graph for this function:

◆ wait()

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

Implements AbstractPtyProcess.

Here is the call graph for this function:

◆ writeInput()

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

Implements AbstractPtyProcess.

◆ writeStdErr()

void ProcessPosixPty::writeStdErr ( char const *  buf,
size_t  len 
)
private

◆ writeStdOut()

void ProcessPosixPty::writeStdOut ( char const *  buf,
size_t  len 
)
private

Member Data Documentation

◆ m

Private* ProcessPosixPty::m
private

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