summaryrefslogtreecommitdiff
path: root/Source/Library/Common/IStream.proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Library/Common/IStream.proto.h')
-rw-r--r--Source/Library/Common/IStream.proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Library/Common/IStream.proto.h b/Source/Library/Common/IStream.proto.h
index f689a22..e844726 100644
--- a/Source/Library/Common/IStream.proto.h
+++ b/Source/Library/Common/IStream.proto.h
@@ -10,6 +10,7 @@ class IStream : private Mutex {
SimpleList<String> *m_buffer;
int m_ptr;
void operator =(IStream& other);
+ bool m_eof;
bool populate();
@@ -21,6 +22,8 @@ class IStream : private Mutex {
IStream(const IStream& other);
virtual ~IStream();
+ bool eof() const { return m_eof && (m_buffer == NULL); }
+
WChar getChar();
String get(WChar delimiter = "\n");
String getWord() { return get(" "); }