Public Types | Public Member Functions | Private Attributes

cmtk::CompressedStream::File Class Reference

Class for uncompressed file-based reader engine. More...

Inheritance diagram for cmtk::CompressedStream::File:
Inheritance graph
[legend]
Collaboration diagram for cmtk::CompressedStream::File:
Collaboration graph
[legend]

List of all members.

Public Types

typedef File Self
 This class.
typedef SmartPointer< SelfSmartPtr
 Smart pointer to this class.

Public Member Functions

 File (const char *filename)
 Open new stream from filename.
virtual void Close ()
 Close current file stream.
virtual void Rewind ()
 Reset read pointer to beginning of stream.
virtual int Seek (const long int offset, int whence)
 Set filepointer.
virtual size_t Read (void *data, size_t size, size_t count)
 Read block of data.
virtual bool Get (char &c)
 Read a single character from the stream.
virtual int Tell () const
 Return number of bytes read from stream.
virtual bool Feof () const
 Return 1 if and only if end of file reached.

Private Attributes

FILE * m_File
 File pointer.

Detailed Description

Class for uncompressed file-based reader engine.

Definition at line 254 of file cmtkCompressedStream.h.


Member Typedef Documentation

This class.

Reimplemented from cmtk::CompressedStream::ReaderBase.

Definition at line 259 of file cmtkCompressedStream.h.

Smart pointer to this class.

Reimplemented from cmtk::CompressedStream::ReaderBase.

Definition at line 262 of file cmtkCompressedStream.h.


Member Data Documentation

File pointer.

Definition at line 297 of file cmtkCompressedStream.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines