|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class ITextFileC is an input stream that can opened from a file
or attached to the 'cin' standard input stream using the name "-".
It checks the state of the stream after the opening and before
its closing. The class was created to unify different interfaces
of stream supplied by compiler providers.
OBSOLETE: Use IStreamC
Parent Classes:
public AMMAIstreamWithAssignC
Derived Classes:
Enumerated types:
- enum OpenModeT { binary } ;
-
Special constructors
--------------------
Variables:
- char * name;
-
The name of the stream.
- ifstream * fs;
-
The file stream if any.
Methods:
- ITextFileC(istream & s)
-
Attaches the input stream 's'.
- ITextFileC(const char * fileName)
-
- ~ITextFileC()
-
Closes the input stream.
The status of the stream.
-------------------------
- istream & Stream()
-
Returns the input stream.
- const char * Name() const
-
Returns the name of the stream.
- BooleanT IsEOF() const
-
Returns TRUE if the end of stream was detected.
- BooleanT IsFailEOF() const
-
Returns TRUE after the attempt to read after the end of file.
- void CorrectEOF()
-
This member function can be used to set "eof" state only after
unsuccessful reading across the end of file.
- ITextFileC(const char * fileName,OpenModeT m)
-
Opens the file with the name 'fileName' in special mode 'm'.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|