aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/simple_file.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-08 20:57:03 -0400
committerPaul Gilbert2016-07-10 16:38:53 -0400
commit9ce6391a94db959f3dde54ed3d0153e000aa3d5a (patch)
tree60cba99e447b562502d4b66815c94fa6bc44b7e6 /engines/titanic/support/simple_file.h
parent71179e376363c1c59b9c7819bfbe89196c7bbc23 (diff)
downloadscummvm-rg350-9ce6391a94db959f3dde54ed3d0153e000aa3d5a.tar.gz
scummvm-rg350-9ce6391a94db959f3dde54ed3d0153e000aa3d5a.tar.bz2
scummvm-rg350-9ce6391a94db959f3dde54ed3d0153e000aa3d5a.zip
TITANIC: Beginnings of TTWord hierarchy
Diffstat (limited to 'engines/titanic/support/simple_file.h')
-rw-r--r--engines/titanic/support/simple_file.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/titanic/support/simple_file.h b/engines/titanic/support/simple_file.h
index 115e3805da..431df016ad 100644
--- a/engines/titanic/support/simple_file.h
+++ b/engines/titanic/support/simple_file.h
@@ -122,6 +122,11 @@ public:
void readBuffer(char *buffer = nullptr, size_t count = 0);
/**
+ * Scan in values from the file
+ */
+ bool scanf(const char *format, ...);
+
+ /**
* Write a string line
*/
void writeLine(const CString &str);
@@ -197,6 +202,14 @@ public:
* Write out the ending footer for a class definition
*/
void writeClassEnd(int indent);
+
+ /**
+ * Return true if the stream has finished being read
+ */
+ bool eos() const {
+ assert(_inStream);
+ return _inStream->eos();
+ }
};
/**