Ipelib
|
#include <ipebase.h>
Inherited by StandardStyleSource, ipe::A85Source, ipe::Base64Source, ipe::BufferSource, ipe::FileSource, and ipe::InflateSource.
Public Member Functions | |
virtual | ~DataSource ()=0 |
virtual int | getChar ()=0 |
virtual int | length () const |
virtual void | setPosition (int pos) |
virtual int | position () const |
Interface for getting data for parsing.
|
pure virtual |
Pure virtual destructor.
|
pure virtual |
Get one more character, or EOF.
Implemented in ipe::BufferSource, ipe::FileSource, ipe::InflateSource, ipe::Base64Source, and ipe::A85Source.
Referenced by ipe::A85Source::getChar(), ipe::Base64Source::getChar(), ipe::XmlParser::getChar(), and ipe::PdfFile::parse().
|
virtual |
Return length of input stream in characters.
Returns -1 if the stream is not seekable. Calling this function will invalidate the current position.
Reimplemented in ipe::BufferSource, and ipe::FileSource.
Referenced by ipe::PdfFile::parse().
|
virtual |
Set position in stream.
Does nothing if the stream is not seekable.
Reimplemented in ipe::BufferSource, and ipe::FileSource.
Referenced by ipe::PdfFile::parse().
|
virtual |
Return position in stream.
Returns -1 if the stream is not seekable.
Reimplemented in ipe::BufferSource, and ipe::FileSource.