cxxtools::posix::Exec Class Reference

cxxtools::posix::Exec is a wrapper around the exec?? functions of posix. More...

#include <cxxtools/posix/exec.h>

Public Member Functions

 Exec (const std::string &cmd)
Execpush_back (const std::string &arg)
Execarg (const std::string &arg)
void exec ()

Detailed Description

cxxtools::posix::Exec is a wrapper around the exec?? functions of posix.

Usage is like this:

e.push_back("-l");
e.exec();

This replaces the current process with the unix command "ls -l".

Constructor & Destructor Documentation

cxxtools::posix::Exec::Exec ( const std::string &  cmd)
inlineexplicit

Member Function Documentation

Exec& cxxtools::posix::Exec::arg ( const std::string &  arg)
inline
void cxxtools::posix::Exec::exec ( )
inline
Exec& cxxtools::posix::Exec::push_back ( const std::string &  arg)
inline

The documentation for this class was generated from the following file:
  • include/cxxtools/posix/exec.h