Files Classes Functions Hierarchy
00001 #ifndef SYSTEMCALLS_H 00002 #define SYSTEMCALLS_H 00003 00004 #include <string> 00005 #include <vector> 00006 using namespace std; 00007 00008 #include <exitint.h> 00009 00031 class systemcalls : public exitint 00032 { 00033 public: 00034 00035 // Extend: error and output to same file 00036 // mkerrors2 gprof > temp.txt 2>&1 00037 00039 bool file_remove; 00040 00042 bool combine; 00043 00045 systemcalls(stringc & command_, stringc & filename_="/tmp/temp.txt"); 00046 00048 string command; 00050 string filename; 00051 00053 vector<string> lines; 00054 00056 int eval(); 00057 00059 stringc output() const; 00060 }; 00061 00065 class systemcallseval : public systemcalls 00066 { 00067 public: 00068 00070 systemcallseval(stringc& command, stringc& options=""); 00071 }; 00072 00073 00074 00075 #endif 00076
1.5.8