Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

lrt::ResourceInputStream Class Reference

An input stream which receives data from a resource (a file compiled into the application executable). More...

#include <rtresource.h>

Inheritance diagram for lrt::ResourceInputStream:

Inheritance graph
[legend]
List of all members.

Public Methods

 ResourceInputStream (const lrt_resource_type &res)
 ResourceInputStream.

virtual ~ResourceInputStream ()
virtual int read ()
 Reads the next byte from the resource. More...

virtual bool eos ()
 Checks if this resource's end has been reached. More...

virtual bool markSupported ()
 Returns true, as ResourceInputStreams support marking.

virtual void mark ()
 Marks the current position in the resource stream.

virtual void reset ()
 Resets the current position to the previously marked one, or to the beginning of the resource if none was marked.


Detailed Description

An input stream which receives data from a resource (a file compiled into the application executable).

ResourceInputStreams should be obtained using Resource::getResource().


Member Function Documentation

bool lrt::ResourceInputStream::eos (    )  [virtual]
 

Checks if this resource's end has been reached.

Returns:
true if the resource has ended, false if there is still some data to read.

Implements lrt::InputStream.

int lrt::ResourceInputStream::read (    )  [virtual]
 

Reads the next byte from the resource.

Returns -1 if the resource's end is reached.

Implements lrt::InputStream.


The documentation for this class was generated from the following files:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer