#include <SgProcess.h>
The implementation of this class is platform-dependent. Currently, only POSIX systems are supported (it also uses GCC-specific extensions to open C++ streams from file descriptors).
Definition at line 20 of file SgProcess.h.
Public Member Functions | |
SgProcess (const std::string &command) | |
Constructor. | |
~SgProcess () | |
std::istream & | Input () |
std::ostream & | Output () |
Private Attributes | |
std::auto_ptr< __gnu_cxx::stdio_filebuf< char > > | m_bufIn |
std::auto_ptr< __gnu_cxx::stdio_filebuf< char > > | m_bufOut |
std::auto_ptr< std::istream > | m_in |
std::auto_ptr< std::ostream > | m_out |
SgProcess::SgProcess | ( | const std::string & | command | ) |
Constructor.
SgException | on failure |
Definition at line 52 of file SgProcess.cpp.
References CreateFileBuf(), m_bufIn, m_bufOut, m_in, m_out, SgStringUtil::SplitArguments(), and TerminateChild().
SgProcess::~SgProcess | ( | ) |
Definition at line 108 of file SgProcess.cpp.
std::istream & SgProcess::Input | ( | ) |
std::ostream & SgProcess::Output | ( | ) |
std::auto_ptr<__gnu_cxx::stdio_filebuf<char> > SgProcess::m_bufIn [private] |
std::auto_ptr<__gnu_cxx::stdio_filebuf<char> > SgProcess::m_bufOut [private] |
std::auto_ptr<std::istream> SgProcess::m_in [private] |
std::auto_ptr<std::ostream> SgProcess::m_out [private] |