X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fbase.cpp;h=bf4c82018dc60d9a6d4ddd18be350468f9a4c0a0;hb=33bfa130254370803efc6882a29a0f0c9f2b6d28;hp=fe706fd5b3cf5cad6b7c5b52e5f229992d5ac933;hpb=df5ab3d867c51d72344e443e3adb05bfa29a2b53;p=libs%2Fcore.git 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