Class FileByteStream

Inheritance Relationships

Base Type

Class Documentation

class FileByteStream : public gpa::utility::ByteStream

The FileByteStream class implements a ByteStream interface in terms of actual character-stream-based storage.

Public Functions

FileByteStream(TCHAR const *filename)

FileByteStream constructor.

Parameters

filename -- Pathname to file to open from storage. This path can be relative or absolute; no attempt is made to search for file in storage.

~FileByteStream()
FileByteStream(const FileByteStream&) = delete
FileByteStream &operator=(const FileByteStream&) = delete
virtual uint8_t Next() override
virtual bool EOS() const override

Note

If a file cannot be opened for any reason, this method will return true.