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
ShellExec Class Reference

#include <ShellExec.hpp>

Inheritance diagram for ShellExec:
Collaboration diagram for ShellExec:

Public Member Functions

 ShellExec (const std::string &cmd_)
virtual ~ShellExec (void)
bool exec (std::ostream &os=std::cout, std::ostream &es=std::cerr)
unsigned int getExitStatus (void) const
- 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 ShellExec &shellExec)
std::string & operator<< (std::string &str, const ShellExec &shellExec)

Additional Inherited Members

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

Detailed Description

Definition at line 20 of file ShellExec.hpp.

Constructor & Destructor Documentation

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

Definition at line 10 of file ShellExec.cpp.

virtual ShellExec::~ShellExec ( void  )
inlinevirtual

Definition at line 25 of file ShellExec.hpp.

Member Function Documentation

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

Implements ExecBase.

Definition at line 15 of file ShellExec.cpp.

Here is the call graph for this function:

unsigned int ShellExec::getExitStatus ( void  ) const
inline

Definition at line 28 of file ShellExec.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ShellExec shellExec 
)
friend

Definition at line 70 of file ShellExec.cpp.

std::string& operator<< ( std::string &  str,
const ShellExec shellExec 
)
friend

Definition at line 76 of file ShellExec.cpp.


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