From 965148b43b5b859934b7af2e8447ba1026a43a19 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 10 Oct 2011 19:36:55 -0700 Subject: Adding the basic "Handle" structure, and adding an early version of Input. Renamed suspend() to yield(). Fixed a couple of bugs, and reorganized slightly some code. --- includes/Input.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 includes/Input.h (limited to 'includes/Input.h') diff --git a/includes/Input.h b/includes/Input.h new file mode 100644 index 0000000..418b018 --- /dev/null +++ b/includes/Input.h @@ -0,0 +1,18 @@ +#pragma once + +#include + +namespace Balau { + +class Input : public SeekableHandle { + public: + Input(const char * fname) throw (GeneralException); + virtual void close() throw (GeneralException); + virtual bool isClosed(); + virtual const char * getName(); + private: + int m_fd; + String m_name; +}; + +}; -- cgit v1.2.3