diff options
author | Aki <please@ignore.pl> | 2022-04-02 19:04:29 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-02 19:15:49 +0200 |
commit | beb4c7aa02cfe80cdfc6793406823c5f32cb0b74 (patch) | |
tree | 2501d9034b7ebc31374394a1c44e16a329f11a64 /FoundationEx/Reader.h | |
parent | d5fe6f541817105955a0cf48331e564c5e2d5692 (diff) | |
download | starshatter-beb4c7aa02cfe80cdfc6793406823c5f32cb0b74.zip starshatter-beb4c7aa02cfe80cdfc6793406823c5f32cb0b74.tar.gz starshatter-beb4c7aa02cfe80cdfc6793406823c5f32cb0b74.tar.bz2 |
Reformatted Reader and updated header includes
Diffstat (limited to 'FoundationEx/Reader.h')
-rw-r--r-- | FoundationEx/Reader.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/FoundationEx/Reader.h b/FoundationEx/Reader.h index e1154d1..ed6aebc 100644 --- a/FoundationEx/Reader.h +++ b/FoundationEx/Reader.h @@ -3,20 +3,19 @@ Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors Copyright (c) 1997-2006, Destroyer Studios LLC. - AUTHOR: John DiCamillo + AUTHOR: John DiCamillo - OVERVIEW - ======== - Declaration of the Reader class + OVERVIEW + ======== + Declaration of the Reader class */ -#ifndef READER_H -#define READER_H +#ifndef Reader_h +#define Reader_h #include "Text.h" -// +-------------------------------------------------------------------+ class Reader { @@ -27,10 +26,11 @@ public: virtual Text more() = 0; }; + class ConsoleReader : public Reader { public: - virtual Text more(); + virtual Text more() override; void printPrimaryPrompt(); void fillInputBuffer(); @@ -40,17 +40,19 @@ private: char* p; }; + class FileReader : public Reader { public: FileReader(const char* fname); - virtual Text more(); + virtual Text more() override; private: Text filename; int done; }; + class BlockReader : public Reader { public: @@ -64,4 +66,5 @@ private: int length; }; -#endif + +#endif // Reader_h |