4 * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.
7 * InFileStream subclasses std::ifstream, adding a check for the end-of-line
8 * character convention in the input file. This is then used by the getline()
9 * member as the line delimiter, unless the caller supplies an explicit
12 * Created: 09-02-07,Nigel Brown(EMBL)
13 ***************************************************************************/
14 #ifndef INFILESTREAM_H
15 #define INFILESTREAM_H
22 class InFileStream : public std::ifstream
26 InFileStream(const char *filename);
27 //- InFileStream(const InFileStream ©);
29 void open(const char *filename);
34 std::istream& getline(char *s, std::streamsize n);/*{return ifstream::getline(s, n, delim);}*/
35 std::istream& getline(char *s, std::streamsize n, char delim);
37 return ifstream::getline(s, n, delim);
44 //disable copy-constructor
45 InFileStream(const InFileStream ©);
47 //auto_ptr<ifstream> inFile;
51 #endif //INFILESTREAM_H