X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbase.cpp;h=bf4c82018dc60d9a6d4ddd18be350468f9a4c0a0;hp=fe706fd5b3cf5cad6b7c5b52e5f229992d5ac933;hb=82d74297d5b469b0a506d7010a84ab5115cd88ee;hpb=2749f89e25c9b1bfb76803ee01b780790cd3f96a diff --git a/source/io/base.cpp b/source/io/base.cpp index fe706fd..bf4c820 100644 --- a/source/io/base.cpp +++ b/source/io/base.cpp @@ -48,5 +48,14 @@ int Base::get() return static_cast(c); } +void Base::set_eof() +{ + if(!eof_flag) + { + eof_flag = true; + signal_end_of_file.emit(); + } +} + } // namespace IO } // namespace Msp