Wavelet and Image class library  1.3.2
Public Member Functions | Protected Member Functions
PpmReader Class Reference

#include <PpmReader.hh>

Inheritance diagram for PpmReader:
Inheritance graph
[legend]
Collaboration diagram for PpmReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PpmReader (char const *name, Image *images[])
virtual ~PpmReader (void)

Protected Member Functions

virtual int readfmt (void)

Detailed Description

A PPM file reader. Only PPMs version 6 are supported.

Definition at line 21 of file PpmReader.hh.


Constructor & Destructor Documentation

PpmReader::PpmReader ( char const *  name,
Image images[] 
) [inline]

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference.

Parameters:
namethe file name
imagesthe array of greyscale images for the values

Definition at line 31 of file PpmReader.hh.

virtual PpmReader::~PpmReader ( void  ) [inline, virtual]

Destructor - does nothing.

Definition at line 35 of file PpmReader.hh.


Member Function Documentation

virtual int PpmReader::readfmt ( void  ) [protected, virtual]

Read the PPM file format. This does the actual work of reading and parsing the image file. It gets called by the {read ()} method.

Returns:
0 if successful, -1 on read error, -2 on file format error.

Implements PixmapReader.


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