HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ProcExec Class Reference

#include <ProcExec.hpp>

Inheritance diagram for ProcExec:
Collaboration diagram for ProcExec:

Public Member Functions

 ProcExec (const std::string &cmd_)
 ProcExec (const std::string &cmd_, const Poco::Process::Args &args_)
 ProcExec (const std::string &cmd_, const Poco::Process::Args &args_, const Poco::Process::Env &env_)
virtual ~ProcExec (void)
bool exec (std::ostream &os=std::cout, std::ostream &es=std::cerr)
void setArgs (const Poco::Process::Args &args_)
Poco::Process::Args & getArgs (void)
void setEnv (const Poco::Process::Env &env_)
Poco::Process::Env & getEnv (void)
- Public Member Functions inherited from ExecBase
 ExecBase (const std::string &cmd_)
virtual ~ExecBase ()
void setCmd (const std::string &cmd_)
std::string getCmd (void) const
bool isError (void) const

Friends

std::ostream & operator<< (std::ostream &os, const ProcExec &procExec)
std::string & operator<< (std::string &str, const ProcExec &procExec)

Additional Inherited Members

- Protected Attributes inherited from ExecBase
std::string cmd
bool _IsError

Detailed Description

Definition at line 23 of file ProcExec.hpp.

Constructor & Destructor Documentation

ProcExec::ProcExec ( const std::string &  cmd_)
explicit

Definition at line 9 of file ProcExec.cpp.

ProcExec::ProcExec ( const std::string &  cmd_,
const Poco::Process::Args &  args_ 
)

Definition at line 24 of file ProcExec.cpp.

ProcExec::ProcExec ( const std::string &  cmd_,
const Poco::Process::Args &  args_,
const Poco::Process::Env &  env_ 
)

Definition at line 29 of file ProcExec.cpp.

virtual ProcExec::~ProcExec ( void  )
inlinevirtual

Definition at line 29 of file ProcExec.hpp.

Member Function Documentation

bool ProcExec::exec ( std::ostream &  os = std::cout,
std::ostream &  es = std::cerr 
)
virtual

Implements ExecBase.

Definition at line 34 of file ProcExec.cpp.

Here is the caller graph for this function:

Poco::Process::Args& ProcExec::getArgs ( void  )
inline

Definition at line 34 of file ProcExec.hpp.

Poco::Process::Env& ProcExec::getEnv ( void  )
inline

Definition at line 37 of file ProcExec.hpp.

void ProcExec::setArgs ( const Poco::Process::Args &  args_)
inline

Definition at line 33 of file ProcExec.hpp.

void ProcExec::setEnv ( const Poco::Process::Env &  env_)
inline

Definition at line 36 of file ProcExec.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ProcExec procExec 
)
friend

Definition at line 60 of file ProcExec.cpp.

std::string& operator<< ( std::string &  str,
const ProcExec procExec 
)
friend

Definition at line 66 of file ProcExec.cpp.


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