|
Public Member Functions |
| | SystemCmd (const char *Command_Cv, bool UseTmp_bv=false, SpecialTreatment=ST_NONE) |
| | SystemCmd (bool UseTmp_bv=false, SpecialTreatment=ST_NONE) |
| virtual | ~SystemCmd () |
| int | Execute (string Command_Cv) |
| int | ExecuteBackground (string Command_Cv) |
| void | SetOutputHandler (void(*Handle_f)(void *, string, bool), void *Par_p) |
| int | Select (string Reg_Cv, bool Invert_bv=false, unsigned Idx_ii=IDX_STDOUT) |
| const string * | GetString (unsigned Idx_ii=IDX_STDOUT) |
| const string * | GetLine (unsigned Num_iv, bool Selected_bv=false, unsigned Idx_ii=IDX_STDOUT) |
| int | NumLines (bool Selected_bv=false, unsigned Idx_ii=IDX_STDOUT) |
| void | SetCombine (const bool Combine_b=true) |
| void | AppendTo (string File_Cv, unsigned Idx_ii=IDX_STDOUT) |
| int | Retcode () |
| string | GetFilename (unsigned Idx_ii=IDX_STDOUT) |
| int | GetStdout (vector< string > &Ret_Cr, const bool Append_bv=false) |
| int | GetStderr (vector< string > &Ret_Cr, const bool Append_bv=false) |
Protected Member Functions |
| int | PlaceOutput (unsigned Which_iv, vector< string > &Ret_Cr, const bool Append_bv) |
| void | Invalidate () |
| void | InitFile () |
| void | OpenFiles () |
| int | DoExecute (string Cmd_Cv) |
| bool | DoWait (bool Hang_bv, int &Ret_ir) |
| void | InitCmd (string CmdIn_rv, string &CmdRedir_Cr) |
| void | CheckOutput () |
| void | GetUntilEOF (ifstream &File_Cr, vector< string > &Lines_Cr, bool &NewLineSeen_br, bool Stderr_bv) |
| void | ExtractNewline (char *Buf_ti, int Cnt_ii, bool &NewLineSeen_br, string &Text_Cr, vector< string > &Lines_Cr) |
| void | AddLine (string Text_Cv, vector< string > &Lines_Cr) |
| void | CloseOpenFds () |
Protected Attributes |
| string | FileName_aC [2] |
| string | Text_aC [2] |
| bool | Valid_ab [2] |
| ifstream | File_aC [2] |
| vector< string > | Lines_aC [2] |
| vector< string * > | SelLines_aC [2] |
| bool | Append_ab [2] |
| bool | NewLineSeen_ab [2] |
| bool | Combine_b |
| bool | UseTmp_b |
| bool | Background_b |
| int | Ret_i |
| int | Pid_i |
| SpecialTreatment | Spec_e |
| void(* | OutputHandler_f )(void *, string, bool) |
| void * | HandlerPar_p |
Static Protected Attributes |
| static int | Nr_i = 0 |