class SystemCmd


Definition#include <SystemCmd.h>
Inherited byInterCmd
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

 SystemCmd ( const char* Command_Cv, bool UseTmp_bv=false, SpecialTreatment=ST_NONE )

SystemCmd

 SystemCmd ( bool UseTmp_bv=false, SpecialTreatment=ST_NONE )

SystemCmd

 ~SystemCmd ()

~SystemCmd

[virtual]

int  Execute ( string Command_Cv )

Execute

int  ExecuteBackground ( string Command_Cv )

ExecuteBackground

void  SetOutputHandler ( void (*Handle_f)( void *, string, bool ), void * Par_p )

SetOutputHandler

int  Select ( string Reg_Cv, bool Invert_bv=false, unsigned Idx_ii=IDX_STDOUT )

Select

const string*  GetString ( unsigned Idx_ii=IDX_STDOUT )

GetString

const string*  GetLine ( unsigned Num_iv, bool Selected_bv=false, unsigned Idx_ii=IDX_STDOUT )

GetLine

int  NumLines ( bool Selected_bv=false, unsigned Idx_ii=IDX_STDOUT )

NumLines

void  SetCombine ( const bool Combine_b=true )

SetCombine

void  AppendTo ( string File_Cv, unsigned Idx_ii=IDX_STDOUT )

AppendTo

int  Retcode ( )

Retcode

string  GetFilename ( unsigned Idx_ii=IDX_STDOUT )

GetFilename

int  GetStdout ( vector &Ret_Cr, const bool Append_bv = false )

GetStdout

int  GetStderr ( vector &Ret_Cr, const bool Append_bv = false )

GetStderr

int  PlaceOutput ( unsigned Which_iv, vector &Ret_Cr, const bool Append_bv )

PlaceOutput

[protected]

void  Invalidate ()

Invalidate

[protected]

void  InitFile ()

InitFile

[protected]

void  OpenFiles ()

OpenFiles

[protected]

int  DoExecute ( string Cmd_Cv )

DoExecute

[protected]

bool  DoWait ( bool Hang_bv, int& Ret_ir )

DoWait

[protected]

void  InitCmd ( string CmdIn_rv, string& CmdRedir_Cr )

InitCmd

[protected]

void  CheckOutput ()

CheckOutput

[protected]

void  GetUntilEOF ( ifstream& File_Cr, vector& Lines_Cr, bool& NewLineSeen_br, bool Stderr_bv )

GetUntilEOF

[protected]

void  ExtractNewline ( char* Buf_ti, int Cnt_ii, bool& NewLineSeen_br, string& Text_Cr, vector& Lines_Cr )

ExtractNewline

[protected]

void  AddLine ( string Text_Cv, vector& Lines_Cr )

AddLine

[protected]

string FileName_aC[2]

FileName_aC[2]

[protected]

string Text_aC[2]

Text_aC[2]

[protected]

bool Valid_ab[2]

Valid_ab[2]

[protected]

ifstream File_aC[2]

File_aC[2]

[protected]

vector Lines_aC[2]

Lines_aC[2]

[protected]

vector SelLines_aC[2]

SelLines_aC[2]

[protected]

bool Append_ab[2]

Append_ab[2]

[protected]

bool NewLineSeen_ab[2]

NewLineSeen_ab[2]

[protected]

bool Combine_b

Combine_b

[protected]

bool UseTmp_b

UseTmp_b

[protected]

bool Background_b

Background_b

[protected]

int Ret_i

Ret_i

[protected]

int Pid_i

Pid_i

[protected]

SpecialTreatment Spec_e

Spec_e

[protected]

void  (*OutputHandler_f) ( void*, string, bool )

(*OutputHandler_f)

[protected]

void * HandlerPar_p

HandlerPar_p

[protected]

static int Nr_i

Nr_i

[protected]


Generated by: root on D60 on Mon Oct 20 16:15:28 2003, using kdoc 2.0a54.