]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/base.cpp
Some fixes for eof handling in Memory
[libs/core.git] / source / io / base.cpp
index fe706fd5b3cf5cad6b7c5b52e5f229992d5ac933..052d464becb6f793cb774c32e38c4fa40e686721 100644 (file)
@@ -48,5 +48,19 @@ int Base::get()
        return static_cast<unsigned char>(c);
 }
 
+void Base::set_eof()
+{
+       if(!eof_flag)
+       {
+               eof_flag = true;
+               signal_end_of_file.emit();
+       }
+}
+
+const Handle &Base::get_handle(Mode)
+{
+       throw logic_error("Base::get_handle");
+}
+
 } // namespace IO
 } // namespace Msp