CommandShell Class Reference

processes with system calls. More...

List of all members.

Public Member Functions

 CommandShell ()
 constructor
 ~CommandShell ()
 destructor
CommandShelloperator<< (const char *string)
 adds string to unixCommand
CommandShelloperator<< (CommandShell &(*f)(CommandShell &))
 allows passing of the flush function to the shell using <<
CommandShellflush ()
 "flushes" the shell; i.e. executes the unixCommand
void asynch_flag (const bool flag)
 set the asynchFlag
bool asynch_flag () const
 get the asynchFlag
void suppress_output_flag (const bool flag)
 set the suppressOutputFlag
bool suppress_output_flag () const
 get the suppressOutputFlag

Private Attributes

String unixCommand
 insertions and then executed by flush
bool asynchFlag
 flags nonblocking operation (background system calls)
bool suppressOutputFlag
 flags suppression of shell output (no command echo)


Detailed Description

processes with system calls.

The CommandShell class wraps the C system() utility and defines convenience operators for building a command string and then passing it to the shell.


Member Function Documentation

CommandShell & flush (  ) 

"flushes" the shell; i.e. executes the unixCommand

Executes the unixCommand by passing it to system(). Appends an "&" if asynchFlag is set (background system call) and echos the unixCommand to Cout if suppressOutputFlag is not set.


The documentation for this class was generated from the following files:
Generated on Wed Nov 5 19:54:06 2008 for DAKOTA by  doxygen 1.5.1