#ifndef MSP_IO_BUFFERED_H_
#define MSP_IO_BUFFERED_H_
+#include <sigc++/trackable.h>
#include "base.h"
namespace Msp {
namespace IO {
-class Buffered: public Base
+class Buffered: public Base, public sigc::trackable
{
private:
Base &below;
Buffered(Base &, unsigned =8192);
~Buffered();
+ virtual void set_block(bool);
+ virtual void set_inherit(bool);
+
void flush();
protected:
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