User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
ITextFileC::ITextFileC(istream &)
ITextFileC::ITextFileC(const char *)
ITextFileC::~ITextFileC(void)
ITextFileC::Stream(void)
ITextFileC::Name(void) const
ITextFileC::IsEOF(void) const
ITextFileC::IsFailEOF(void) const
ITextFileC::CorrectEOF(void)
ITextFileC
 
A input text file class
 
include "amma/TextFile.hh"
User Level:Default
Library:MstdIO
Example:exComplx.cc
Section:Basic Types.IO
In Scope:std

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: Derived Classes: Enumerated types:
Variables:
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.


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001