claw::graphic::pcx::reader Class Reference

This class read data from a pcx file and store it in an image. More...

`#include <pcx.hpp>`

## Public Member Functions

| reader (image &img)
| Constructor. More...
| reader (image &img, std::istream &f)
| Constructor. More...
void | load (std::istream &f)
| Load an image from a pcx file. More...

## Detailed Description

This class read data from a pcx file and store it in an image.

Author
  Julien Jorge

Definition at line 158 of file pcx.hpp.

## Constructor & Destructor Documentation

## reader() [1/2]

claw::graphic::pcx::reader::reader | ( | image & | img | ) |

Constructor.

Parameters

  img | The image in which the data will be stored.

Definition at line 270 of file pcx_reader.cpp.

## reader() [2/2]

claw::graphic::pcx::reader::reader | ( | image & | img,
|  | std::istream & | f
| ) |  |

Constructor.

Parameters

  img | The image in which the data will be stored.
  f | The file from which we read the data.

Postcondition
  img contains the data from f.

Definition at line 283 of file pcx_reader.cpp.

References load().

## Member Function Documentation

## load()

void claw::graphic::pcx::reader::load | ( | std::istream & | f | ) |

Load an image from a pcx file.

Parameters

  f | Pcx file.

Definition at line 294 of file pcx_reader.cpp.

References CLAW_EXCEPTION, CLAW_PRECOND, and claw::graphic::image::set_size().

Referenced by reader().

The documentation for this class was generated from the following files:

- pcx.hpp
- code/pcx_reader.cpp