class Presentation

This class represents a whole presentation

Public Methods

[more] Presentation()
Default constructor
[more] ~Presentation()
Destructor
[more]int read()
This method reads the presentation from the inputfile
[more]void write()
This method writes the whole presentation
[more]Slide* getPrevSlide(unsigned int slide_number)
This method returns the previous slide of the slide with the given number
[more]Slide* getNextSlide(unsigned int slide_number)
This method returns the next slide of the slide with the given number

Private Fields

[more] slides_
A vector which contains pointers to all slides

Private Methods

[more]void writeIndexPage()
This helper-method will write an index-page


Documentation

This class represents a whole presentation. It contains a theme and a vector which holds pointers to all slides.
o Presentation()
Default constructor

o ~Presentation()
Destructor

oint read()
This method reads the presentation from the inputfile. The filename is given by the member variable input_file_ of the class Parameters.
Returns:
-1, if the file doesn't exist, else the number of errors in the inputfile.

ovoid write()
This method writes the whole presentation. The theme-files and the HTML-files for each slide will be copied to the target directory, which is given by the member variable target_directory_ of the class Parameters.

oSlide* getPrevSlide(unsigned int slide_number)
This method returns the previous slide of the slide with the given number.
Returns:
The previous slide, or NULL if the given slide is the first one
Parameters:
slide_number - The number of the slide, which next one should be returned

oSlide* getNextSlide(unsigned int slide_number)
This method returns the next slide of the slide with the given number.
Returns:
The next slide, or NULL if the given slide is the last one
Parameters:
slide_number - The number of the slide, which previous one should be returned

ovoid writeIndexPage()
This helper-method will write an index-page. It is called in the method write() before writing the slides.

o slides_
A vector which contains pointers to all slides


This class has no child classes.

Alphabetic index Hierarchy of classes



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