All Frameworks Class Hierarchy This Framework Previous Next Indexes
SPAbase Class input_callback
SPAbase.toolkit_callback
|
+---input_callback
Usage: you can derive this class.
public class input_callback
Creates the standard input for ACIS.
Role: The input_callback implements standard input for ACIS.
Any time a standard C input call is made within ACIS, that call is redirected
through this callback class. At that point the platform specific implementation
of input_callback obtains the input from its natural input stream.
Constructor and Destructor Index
- o
input_callback(FILE*)
- C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
- o
~input_callback()
- Destroys this callback.
Method Index
- o
do_clearerr()
- Clears the end of file and error indicators.
- o
do_feof()
- Returns a non-zero if end of file reached.
- o
do_ferror()
- Returns a non-zero if an error has occurred.
- o
do_getc()
- Gets input character from input stream.
- o
do_ungetc(int)
- Pushes character back onto input stream.
Data Member Index
- o
fp
- The file pointer to which this callback relates
Constructor and Destructor
o input_callback
public input_callback( | FILE* | in_fp) |
-
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
- Parameters:
-
- in_fp
- file pointer.
o ~input_callback
protected virtual ~input_callback( | ) |
-
Destroys this callback.
Methods
o do_clearerr
public virtual void do_clearerr( | ) |
-
Clears the end of file and error indicators.
o do_feof
public virtual int do_feof( | ) |
-
Returns a non-zero if end of file reached.
o do_ferror
public virtual int do_ferror( | ) |
-
Returns a non-zero if an error has occurred.
Role: Clears end of file and error indicators.
o do_getc
public virtual int do_getc( | ) |
-
Gets input character from input stream.
o do_ungetc
public virtual int do_ungetc( | int | c) |
-
Pushes character back onto input stream.
- Parameters:
-
- c
- character to push back.
Data Members
o fp
protected FILE *fp
-
The file pointer to which this callback relates
This object is included in the file: acinput.hxx