CommandRunner Namespace Reference
[Command Runner]


Functions

void Run (const string &commandText)

Detailed Description

The CommandRunner class can be used to execute shell commands from a C++ program.


Function Documentation

void CommandRunner::Run ( const std::string &  commandText  ) 

Executes the passed-in command string.

       CommandRunner::Run("g++ -o hello HelloWorld.cpp");
Exceptions:
CS240Exception If the command fails (i.e., returns a non-zero value from main)

Definition at line 24 of file CommandRunner.cpp.

References StringUtil::Trim().


Generated on Wed Jul 7 16:30:30 2010 for CS240Utils by  doxygen 1.5.8