diff options
author | Pixel <pixel@nobis-crew.org> | 2011-10-10 19:36:55 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-10-10 19:36:55 -0700 |
commit | 965148b43b5b859934b7af2e8447ba1026a43a19 (patch) | |
tree | 290ff60cd1ebc9a065109620b2e9a5ff4e5b3d17 /includes/Input.h | |
parent | cf9a801ebcb4df0a8b1ea75e58ca8ea8960ba13b (diff) |
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.
Diffstat (limited to 'includes/Input.h')
-rw-r--r-- | includes/Input.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <Handle.h> + +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; +}; + +}; |