◆ FileInputStream()
FileInputStream::FileInputStream |
( |
FILE * | source | ) |
|
Create a new instance of FileInputStream that will output the content of the FILE opened.
- Parameters
-
source | A FILE* object returned by a fopen() call on the file whose content should be provided by this stream. |
◆ eof()
bool FileInputStream::eof |
( |
| ) |
|
|
virtual |
◆ getchar()
int FileInputStream::getchar |
( |
| ) |
|
|
virtual |
◆ readline()
size_t FileInputStream::readline |
( |
char ** | buffer, |
|
|
size_t * | length ) |
|
virtual |
Implementation of the readline() method of the AbstractInputStream
parent.
- Parameters
-
buffer | A pointer to the buffer where the line will be stored. |
length | A pointer where the length of the allocated buffer at the end will be saved. |
- Returns
- The number of characters that have been stored in buffer.
Implements mps::AbstractInputStream.
The documentation for this class was generated from the following files: