CommandRunner.h

Go to the documentation of this file.
00001 #ifndef COMMAND_RUNNER_H
00002 #define COMMAND_RUNNER_H
00003 
00004 #include <string>
00005 
00006 //!@defgroup cmdrunner Command Runner
00007 //!CommandRunner::Run function that executes program for you
00008 
00009 //!The CommandRunner class can be used to execute shell commands from a C++ program.
00010 //!@ingroup cmdrunner
00011 namespace CommandRunner {
00012     //!Executes the passed-in command string.
00013     //!@code
00014     //!CommandRunner::Run("g++ -o hello HelloWorld.cpp");
00015     //!@endcode
00016     //!@throw CS240Exception If the command fails (i.e., returns a non-zero value from main)
00017     void Run(const std::string & commandText);
00018 }
00019 
00020 
00021 #endif
00022 

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