Mode get_mode() const { return mode; }
protected:
+ void check_access(Mode) const;
+
virtual unsigned do_write(const char *, unsigned) = 0;
virtual unsigned do_read(char *, unsigned) = 0;
to end-of-file or non-blocking operation. */
virtual int get();
+protected:
+ void set_eof();
+
+public:
/** Returns the end-of-file flag. */
bool eof() const { return eof_flag; }
};