Ipelib
|
#include <ipebase.h>
Inherits ipe::DataSource.
Public Member Functions | |
FileSource (std::FILE *file) | |
virtual int | getChar () override |
virtual int | length () const override |
virtual void | setPosition (int pos) override |
virtual int | position () const override |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
Data source for parsing from a file.
FileSource::FileSource | ( | std::FILE * | file | ) |
|
overridevirtual |
Get one more character, or EOF.
Implements ipe::DataSource.
|
overridevirtual |
Return length of input stream in characters.
Returns -1 if the stream is not seekable. Calling this function will invalidate the current position.
Reimplemented from ipe::DataSource.
|
overridevirtual |
Set position in stream.
Does nothing if the stream is not seekable.
Reimplemented from ipe::DataSource.
|
overridevirtual |
Return position in stream.
Returns -1 if the stream is not seekable.
Reimplemented from ipe::DataSource.