00001
00002
00003
00004 #ifndef _InterCmd_h
00005 #define _InterCmd_h
00006
00007
00008 #include <stdio.h>
00009 #include <fstream>
00010 #include <string>
00011
00012 #define DBG(x)
00013
00014 #include "SystemCmd.h"
00015
00016 class InterCmd : public SystemCmd
00017 {
00018 public:
00019 InterCmd( string Command_Cv, bool UseTmp_bv=false );
00020 InterCmd( bool UseTmp_bv=false );
00021 virtual ~InterCmd();
00022 void Execute( string Command_Cv );
00023 bool SendInput( string Input_Cv, string Sign_Cv="",
00024 const unsigned MaxTime_iv=60 );
00025 bool CheckOutput( string Sign_Cv, const unsigned MaxTime_iv=60 );
00026 protected:
00027 FILE *Pipe_pr;
00028 };
00029
00030 #endif