-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathifstream
34 lines (28 loc) · 835 Bytes
/
ifstream
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*****************************************************************************/
// Filename: ifstream.h
/*****************************************************************************/
// Description: This class represents an input stream from file
/*****************************************************************************/
#include <istream>
#include <string>
using std::string;
namespace ppcStreams
{
class ifstream : public istream
{
public:
ifstream();
ifstream(string filename);
virtual ~ifstream();
bool open(string filename, ios::openmode mode = ios::in);
bool is_open();
void close();
bool eof();
bool operator ==(bool val);
operator void * () ;
protected:
virtual int InFunction(const char* format, ...);
private:
FILE* _fileHandle;
};
};