/* * PgmResult.hh * * Created on: Jan 10, 2013 * Author: f.casimir */ #ifndef PGMRESULT_HH_ #define PGMRESULT_HH_ #include /* defines FILENAME_MAX */ namespace AMDA { namespace CSlimFixtures { /** * @class PgmResult * @brief Storage of the result of command executed by TestCommandLine. */ class PgmResult { public: /** * Constructor * @brief create 2 temporaries files with unique name for stderr and stdout. */ PgmResult(); /** * Destructor * @brief remove the 2 temporaries files for stderr and stdout. */ virtual ~PgmResult(); /** * Display into stderr the stderr of the command execution. */ void displayStdErr(); /** * Display into stdout the stdout of the command execution. */ void displayStdOut(); int _result; std::string _alias; std::string _cmd; std::string _stdOutFile; std::string _stdErrFile; }; } /* namespace CSlimFixtures */ } /* namespace AMDA */ #endif /* PGMRESULT_HH_ */