class Slide

This class represents one slide

Public Fields

[more]int sequence_number_
The sequence-number of this slide
[more]int number_of_subslides_
The number of subslides. If there are no subslides, the value is -1.

Public Methods

[more] Slide(unsigned int sequence_number)
Creates a slide with the given sequence-number
[more] ~Slide()
Destructor
[more]void read(ifstream *input)
This method creates a slide out of the given inputfile
[more]void write()
This method writes the slide to a HTML-file
[more]char* getTitle()
This method returns the title of the slide

Private Fields

[more]ostrstream title_
The title of the slide
[more]Environment* environment_
A pointer to any environment

Private Methods

[more]void writeSubSlide(int sub_slide)
This helper-method writes a (sub)slide to a HTML-File
[more]void writeHTMLHeader(ofstream *output, char *prev_slide, char *next_slide)
This helper-method prints the HTML-header of the (sub)slide to the given output filestream
[more]void writeHeader(ofstream *output)
This helper-method prints the header of the (sub)slide to the given output filestream
[more]void writeFooter(ofstream *output, char *prev_slide, char *next_slide)
This helper-method prints the footer of the (sub)slide to the given output filestream


Documentation

This class represents one slide. It contains all data, that is needed for writing the apropriate HTML-File. A Slide can also consist of subsildes, which will be written to own HTML-files. Note : The subslides itself are generated on-the-fly, when the method write() is called. They are not stored in a list, or something like that.
o Slide(unsigned int sequence_number)
Creates a slide with the given sequence-number.
Parameters:
slide_number - The sequence-number of this slide

o ~Slide()
Destructor

ovoid read(ifstream *input)
This method creates a slide out of the given inputfile. The inputfile will be read until an empty line, which indicates the beginning of the next slide.
Parameters:
input - The inputfile, which contains all slides

ovoid write()
This method writes the slide to a HTML-file. If the slide contains subslides, all subslides will be written to own HTML-files. The writing itself is done by calling the method writeSubSlide().

ochar* getTitle()
This method returns the title of the slide.
Returns:
The title of the slide

ovoid writeSubSlide(int sub_slide)
This helper-method writes a (sub)slide to a HTML-File. The filename of the HTML-file is generated on-the-fly by the value of sequence_number_ (and the value of the parameter sub_slide).
Parameters:
sub_slide - The subslide that should be written. If -1, there doesn't exist any subslides and the whole slide will be printed.

ovoid writeHTMLHeader(ofstream *output, char *prev_slide, char *next_slide)
This helper-method prints the HTML-header of the (sub)slide to the given output filestream.
Parameters:
output - The output filestream.
prev_slide - The filename of the previous (sub)slide
next_slide - The filename of the next (sub)slide

ovoid writeHeader(ofstream *output)
This helper-method prints the header of the (sub)slide to the given output filestream.
Parameters:
output - The output filestream

ovoid writeFooter(ofstream *output, char *prev_slide, char *next_slide)
This helper-method prints the footer of the (sub)slide to the given output filestream.
Parameters:
output - The output filestream
prev_slide - The filename of the previous (sub)slide
next_slide - The filename of the next (sub)slide

oint sequence_number_
The sequence-number of this slide. The first slide will have the sequence-number 1.

oint number_of_subslides_
The number of subslides. If there are no subslides, the value is -1.

oostrstream title_
The title of the slide

oEnvironment* environment_
A pointer to any environment


This class has no child classes.

Alphabetic index Hierarchy of classes



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