summaryrefslogtreecommitdiff
path: root/src/include/stdiodevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/stdiodevice.h')
-rw-r--r--src/include/stdiodevice.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/stdiodevice.h b/src/include/stdiodevice.h
new file mode 100644
index 0000000..026386c
--- /dev/null
+++ b/src/include/stdiodevice.h
@@ -0,0 +1,31 @@
+/** --------------------------------------------------------------------
+ * @file stdiodevice.h
+ * @brief Declaration of the StdIODevice class.
+ * @author Andreas Aardal Hanssen
+ * @date 2002, 2003
+ * ----------------------------------------------------------------- **/
+#ifndef stdiodevice_h_included
+#define stdiodevice_h_included
+
+#include "iodevice.h"
+
+namespace Binc {
+ class StdIODevice : public IODevice {
+ public:
+ StdIODevice(int flags);
+ ~StdIODevice();
+
+ std::string service(void) const;
+
+ bool canRead(void) const;
+
+ protected:
+ bool waitForWrite(void) const;
+ bool waitForRead(void) const;
+
+ WriteResult write(void);
+ bool fillInputBuffer(void);
+ };
+}
+
+#endif