#include <ostream>
#include <vector>
+#include <stringfunc.hxx>
+
struct ExecResult
{
/** if the program exited normally and returned a return code */
/** errormessage if we have one */
std::string error_message;
+
+ inline std::string format (void) const
+ {
+ return std::string ("(")
+ + "(normal_exit " + (this->normal_exit ? "T" : "F") + ") "
+ "(return_code '" + I2n::to_string ((int)this->return_code) + "') "
+ "(signal " + (this->terminated_by_signal
+ ? strsignal (this->signal)
+ : "<nil>") + "))"
+ ;
+ };
};
typedef struct ExecResult ExecResult;