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

#include <PgmWriter.hh>

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

List of all members.

Public Member Functions

 PgmWriter (char const *name, ImageArray< coeff > &data)
virtual ~PgmWriter (void)

Protected Member Functions

virtual int writefmt (void)

Detailed Description

A PGM image file writer. Dimensions are known from the {ImageArray} object. Only PGM version 5 is supported.

Definition at line 22 of file PgmWriter.hh.


Constructor & Destructor Documentation

PgmWriter::PgmWriter ( char const *  name,
ImageArray< coeff > &  data 
) [inline]

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference and set the offset if necessary.

Parameters:
namethe file name
datathe reference to the {ImageArray} object

Definition at line 33 of file PgmWriter.hh.

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

Destructor - does nothing.

Definition at line 37 of file PgmWriter.hh.


Member Function Documentation

virtual int PgmWriter::writefmt ( void  ) [protected, virtual]

Write a PGM image file. This is the method that does the actual work. It will be called by the {write ()} method.

Returns:
0 if successful, -1 on write error.

Implements GreymapWriter.


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