RSC  0.16.0
rsc::subprocess::UnixSubprocess Class Reference

Unix subprocess implementation. More...

#include <UnixSubprocess.h>

Inheritance diagram for rsc::subprocess::UnixSubprocess:
Inheritance graph
Collaboration diagram for rsc::subprocess::UnixSubprocess:
Collaboration graph

Public Member Functions

 UnixSubprocess (const std::string &command, const std::vector< std::string > &args)
 
virtual ~UnixSubprocess ()
 
- Public Member Functions inherited from rsc::subprocess::Subprocess
virtual ~Subprocess ()
 

Private Attributes

logging::LoggerPtr logger
 
std::string command
 
pid_t pid
 
char ** args
 
size_t argLen
 

Additional Inherited Members

- Static Public Member Functions inherited from rsc::subprocess::Subprocess
static SubprocessPtr newInstance (const std::string &command, const std::vector< std::string > &args=std::vector< std::string >())
 Creates a new subprocess for the given command with the specified arguments. More...
 
- Protected Member Functions inherited from rsc::subprocess::Subprocess
 Subprocess ()
 

Detailed Description

Unix subprocess implementation.

Author
jwienke
Todo:
somehow this crashes and does not give an exception if you try to start a binary that does not exist

Definition at line 46 of file UnixSubprocess.h.

Constructor & Destructor Documentation

rsc::subprocess::UnixSubprocess::UnixSubprocess ( const std::string &  command,
const std::vector< std::string > &  args 
)

Definition at line 43 of file UnixSubprocess.cpp.

References argLen, args, logger, pid, RSCDEBUG, and RSCERROR.

rsc::subprocess::UnixSubprocess::~UnixSubprocess ( )
virtual

Definition at line 96 of file UnixSubprocess.cpp.

References argLen, args, command, logger, pid, RSCDEBUG, and RSCERROR.

Member Data Documentation

size_t rsc::subprocess::UnixSubprocess::argLen
private

Definition at line 61 of file UnixSubprocess.h.

Referenced by UnixSubprocess(), and ~UnixSubprocess().

char** rsc::subprocess::UnixSubprocess::args
private

Definition at line 60 of file UnixSubprocess.h.

Referenced by UnixSubprocess(), and ~UnixSubprocess().

std::string rsc::subprocess::UnixSubprocess::command
private

Definition at line 56 of file UnixSubprocess.h.

Referenced by ~UnixSubprocess().

logging::LoggerPtr rsc::subprocess::UnixSubprocess::logger
private

Definition at line 54 of file UnixSubprocess.h.

Referenced by UnixSubprocess(), and ~UnixSubprocess().

pid_t rsc::subprocess::UnixSubprocess::pid
private

Definition at line 58 of file UnixSubprocess.h.

Referenced by UnixSubprocess(), and ~UnixSubprocess().


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