hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::ProcExec Class Reference

#include <ProcExec.hpp>

Public Member Functions

 ProcExec (const std::string &command_)
 ProcExec (const std::string &command_, const Poco::Process::Args &args_)
 ProcExec (const std::string &command_, 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 setCommand (const std::string &command_)
std::string getCommand (void) const
void setArgs (const Poco::Process::Args &args_)
Poco::Process::Args & getArgs (void)
void setEnv (const Poco::Process::Env &env_)
Poco::Process::Env & getEnv (void)
void setInitialDirectory (const std::string &initialDirectory_)
std::string getInitialDirectory (void) const
bool isError (void) const
unsigned int getExitStatus (void) const

Friends

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

Detailed Description

Definition at line 23 of file ProcExec.hpp.

Constructor & Destructor Documentation

HCE::ProcExec::ProcExec ( const std::string &  command_)
explicit

Definition at line 15 of file ProcExec.cpp.

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

Definition at line 31 of file ProcExec.cpp.

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

Definition at line 36 of file ProcExec.cpp.

virtual HCE::ProcExec::~ProcExec ( void  )
inlinevirtual

Definition at line 29 of file ProcExec.hpp.

Member Function Documentation

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

Definition at line 41 of file ProcExec.cpp.

Here is the caller graph for this function:

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

Definition at line 37 of file ProcExec.hpp.

std::string HCE::ProcExec::getCommand ( void  ) const
inline

Definition at line 34 of file ProcExec.hpp.

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

Definition at line 40 of file ProcExec.hpp.

unsigned int HCE::ProcExec::getExitStatus ( void  ) const
inline

Definition at line 46 of file ProcExec.hpp.

std::string HCE::ProcExec::getInitialDirectory ( void  ) const
inline

Definition at line 43 of file ProcExec.hpp.

bool HCE::ProcExec::isError ( void  ) const
inline

Definition at line 45 of file ProcExec.hpp.

Here is the caller graph for this function:

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

Definition at line 36 of file ProcExec.hpp.

void HCE::ProcExec::setCommand ( const std::string &  command_)
inline

Definition at line 33 of file ProcExec.hpp.

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

Definition at line 39 of file ProcExec.hpp.

void HCE::ProcExec::setInitialDirectory ( const std::string &  initialDirectory_)
inline

Definition at line 42 of file ProcExec.hpp.

Friends And Related Function Documentation

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

Definition at line 73 of file ProcExec.cpp.

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

Definition at line 79 of file ProcExec.cpp.


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