//----------------------------------------------------------------------------- // Parameters // Jan //----------------------------------------------------------------------------- class TRunCard{ public: protected: char buf[100], dirname[100], *infile[50]; int nfiles, verbose; public: TRunCard(const char *filename){ ifstream list(filename,ios::in); if(!list) { cout<<"ERROR, file <"< not found!"<> verbose >> buf; list >> nfiles >> buf; list >> dirname >> buf; check(nfiles); for (int ifile =0; ifile> inf; infile[ifile] = new char[100]; sprintf(infile[ifile],"%s/%s",dirname,inf); } } void check(int i){ if(i>=50 || i<0 || i>nfiles ){ cout<<"ERROR, file nuber "<