class HBoxEnvironment: public Environment

This class represents a <HBOX>-environment

Inheritance:

HBoxEnvironment - Environment


Public Methods

[more] HBoxEnvironment()
Default constructor
[more] ~HBoxEnvironment()
Destructor
[more]void read(ifstream *input)
This method generates a <HBOX>-environment out of the given input filestream
[more]void write(ofstream *output, int parameter)
This method writes all sub-environments to the given output filestream
[more]int shouldBeWrittenOneByOne()
This method indicates, if at least one sub-environment should be written one-by-one
[more]int getNumberOfElements()
This method returns the maximum of the number of elements of the embedded sub-environments that should be written one-by-one

Private Fields

[more] environments_
A vector that holds pointers to the sub-environments.
[more]int number_of_elements_
The maximum of the number of elements of all embedded sub-environments that should be written one-by-one
[more]int write_one_by_one_
If at least one embedded sub-environment should be written one-by-one, the value is 1


Inherited from Environment:

Protected Fields

o elements_


Documentation

This class represents a <HBOX>-environment. This environment contains a vector which can hold any other environments. These sub-environments will be written side by side on the slide. Note : The member-variable elements_ (derivated from Environment) is not used in this class.
o HBoxEnvironment()
Default constructor

o ~HBoxEnvironment()
Destructor

ovoid read(ifstream *input)
This method generates a <HBOX>-environment out of the given input filestream. The sub-environments will be read from the input filestream until a </HBOX>-tag is reached.
Parameters:
input - The input filestream, from where the sub-environments are extracted

ovoid write(ofstream *output, int parameter)
This method writes all sub-environments to the given output filestream. The integer-parameter will be passed to all sub-environment, that should be written one-by-one.
Parameters:
output - The output filestream
parameter - The parameter that will be passed

oint shouldBeWrittenOneByOne()
This method indicates, if at least one sub-environment should be written one-by-one.
Returns:
1, if at least one sub-environment should be written one-by-one, else 0.

oint getNumberOfElements()
This method returns the maximum of the number of elements of the embedded sub-environments that should be written one-by-one.
Returns:
The maximum number of elements

o environments_
A vector that holds pointers to the sub-environments.

oint number_of_elements_
The maximum of the number of elements of all embedded sub-environments that should be written one-by-one. If no such sub-environment exist, the value is -1.

oint write_one_by_one_
If at least one embedded sub-environment should be written one-by-one, the value is 1. If no such sub-environment exist, the value is 0.


This class has no child classes.

Alphabetic index Hierarchy of classes



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