class ImageEnvironment: public Environment

This class represents an <IMG>-environment

Inheritance:

ImageEnvironment - Environment


Public Methods

[more] ImageEnvironment()
Default constructor
[more] ~ImageEnvironment()
Destructor
[more]void read(ifstream *input)
This method generates an <IMG>-environment out of the given input filestream
[more]void write(ofstream *output, int which_image)
This method writes the given image to the given output filestream
[more]int shouldBeWrittenOneByOne()
This method indicates, if the images should be written one-by-one, or if only the first image should be written


Inherited from Environment:

Public Methods

oint getNumberOfElements()

Protected Fields

o elements_


Documentation

This class represents an <IMG>-environment. This environment contains at least one image (ImageElement) stored in an Element-vector (derived from Environment).
o ImageEnvironment()
Default constructor

o ~ImageEnvironment()
Destructor

ovoid read(ifstream *input)
This method generates an <IMG>-environment out of the given input filestream. The input filestream will be read until an </IMG>-Tag is reached.
Parameters:
input - The input filestream, from where the images are extracted

ovoid write(ofstream *output, int which_image)
This method writes the given image to the given output filestream. If the parameter which_image is -1, the first image will be written. If which_image is bigger than the total number of images in the vector, the last image will be written.
Parameters:
output - The output filestream
which_image - Which image from the list should be written.

oint shouldBeWrittenOneByOne()
This method indicates, if the images should be written one-by-one, or if only the first image should be written.
Returns:
1, if the images should be written one-by-one, else 0.


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.