X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbuffered.h;h=da917e0c5a6585027a469ad4fa5dc814db517c29;hp=36d2a1165a3e52b7413397bf01575984efa3ac49;hb=ea8bf8f588310b0d7fd3297d74907602705bba1d;hpb=6e0fd758970bcb5bad5e3f2454b694cc4d7b4b66 diff --git a/source/io/buffered.h b/source/io/buffered.h index 36d2a11..da917e0 100644 --- a/source/io/buffered.h +++ b/source/io/buffered.h @@ -1,12 +1,13 @@ #ifndef MSP_IO_BUFFERED_H_ #define MSP_IO_BUFFERED_H_ +#include #include "base.h" namespace Msp { namespace IO { -class Buffered: public Base +class Buffered: public Base, public sigc::trackable { private: Base &below; @@ -20,6 +21,9 @@ public: Buffered(Base &, unsigned =8192); ~Buffered(); + virtual void set_block(bool); + virtual void set_inherit(bool); + void flush(); protected: @@ -31,13 +35,13 @@ public: bool getline(std::string &); int get(); + virtual const Handle &get_handle(Mode); + private: void set_op(Mode); public: Mode get_current_op() const { return cur_op; } unsigned get_current_size() const; - - virtual Handle get_event_handle(); }; } // namespace IO