summaryrefslogtreecommitdiff
path: root/docs/api-notes/common/lib_common/IOStreamGetLine.txt
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-03-28 12:25:05 +0000
committerChris Wilson <chris+github@qwirx.com>2009-03-28 12:25:05 +0000
commit35e48b188329bf1048dfe154247b3259441de29f (patch)
tree289136939151abaae7447c94f684f134ea4b3381 /docs/api-notes/common/lib_common/IOStreamGetLine.txt
parent5ca3021ed632ff92d0d93d34ef2b75bdfd956d38 (diff)
Reorganise docs in trunk to match distribution layout, which is cleaner,
and makes Makefile work on distributions and trunk equally.
Diffstat (limited to 'docs/api-notes/common/lib_common/IOStreamGetLine.txt')
-rw-r--r--docs/api-notes/common/lib_common/IOStreamGetLine.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/api-notes/common/lib_common/IOStreamGetLine.txt b/docs/api-notes/common/lib_common/IOStreamGetLine.txt
new file mode 100644
index 00000000..04c56b57
--- /dev/null
+++ b/docs/api-notes/common/lib_common/IOStreamGetLine.txt
@@ -0,0 +1,29 @@
+CLASS IOStreamGetLine
+
+This class provides a convenient way to read text from a file, line by line. It also can preprocess the line to remove leading and trailing whitespace and comments. Comments are started by the character # and run to the end of the line.
+
+Create an instance by passing a reference to a stream into the constructor.
+
+Note the class does internal buffering, so you can only detach it later if the stream supports seeking backwards.
+
+
+FUNCTION IOStreamGetLine::GetLine()
+
+Returns true if a line could be retreieved without a read timing out.
+
+
+FUNCTION IOStreamGetLine::IsEOF()
+
+Whether the end of the stream has been reached. Do not call GetLine if this is true.
+
+
+FUNCTION IOStreamGetLine::GetLineNumber()
+
+Returns the line number.
+
+
+FUNCTION IOStreamGetLine::DetachFile()
+
+Detaches the stream from the GetLine class. Will seek backwards to "replace" data it's buffered back in the stream.
+
+