]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/base.h
Unify end-of-file handling
[libs/core.git] / source / io / base.h
index 9447c66fc9a6551dcdcb5644c9333b882de7dcec..700dae7646180266d5393991e2b4d799ac7c1d2c 100644 (file)
@@ -85,6 +85,10 @@ public:
        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; }
 };