anfo  1.0
Public Member Functions | Private Attributes | List of all members
anfo::SeasonHeader Class Reference

Season header in the file. More...

#include <Season.h>

Collaboration diagram for anfo::SeasonHeader:
Collaboration graph

Public Member Functions

 SeasonHeader ()
 Empty constructor. More...
 
 SeasonHeader (Season *season)
 Constructor build from an season. More...
 
unsigned int getSizeOfName ()
 Get the string length of the name. More...
 
unsigned int getSizeOfSecondName ()
 Get the string length of the second name. More...
 
unsigned int getSizeOfGenre ()
 Get the string length of the genre. More...
 
unsigned int getSizeOfDescription ()
 Get the string length of the description. More...
 
unsigned int getSizeOfLanguage ()
 Get the string length of the language. More...
 
unsigned int getSizeOfSubtitle ()
 Get the string length of the subtitles. More...
 
unsigned int getSizeOfFoldername ()
 Get the string length of the folder name. More...
 
unsigned int getSizeOfSeenEpisodes ()
 Get the string length of the seen episodes. More...
 
bool checkMarks ()
 Check the header of errors. More...
 

Private Attributes

char anseasonMark [8]
 The mark of the beginning of a season header. Needs to be 'ANSEASON'. More...
 
unsigned int sizeOfName
 The string length of the name (with the zero byte) More...
 
unsigned int sizeOfSecondName
 The string length of the second name (with the zero byte) More...
 
unsigned int sizeOfGenre
 The string length of the genre (with the zero byte) More...
 
unsigned int sizeOfDescription
 The string length of the description (with the zero byte) More...
 
unsigned int sizeOfLanguage
 The string length of the language (with the zero byte) More...
 
unsigned int sizeOfSubtitle
 The string length of the subtitle language (with the zero byte) More...
 
unsigned int sizeOfFoldername
 The string length of the folder name (with the zero byte) More...
 
unsigned int sizeOfSeenEpisodes
 The string length of seen episodes (with the zero byte) More...
 
char anvaluesMark [8]
 The mark on the beginning of the string block. Needs to be 'ANVALUES'. More...
 

Detailed Description

Season header in the file.

This class prepares a header to write the season to a file or read a file to rebuild a season object You can check the file for errors with marks.

Definition at line 304 of file Season.h.

Constructor & Destructor Documentation

anfo::SeasonHeader::SeasonHeader ( )

Empty constructor.

Creates an empty season header

anfo::SeasonHeader::SeasonHeader ( Season season)

Constructor build from an season.

This constructor builds a header from an season.

Parameters
seasonThe season object with the informations.

Member Function Documentation

bool anfo::SeasonHeader::checkMarks ( )

Check the header of errors.

Returns
If true, the marks are on the correct possition. If false, the season part is corrupt.
unsigned int anfo::SeasonHeader::getSizeOfDescription ( )

Get the string length of the description.

Returns
The string length of the description
unsigned int anfo::SeasonHeader::getSizeOfFoldername ( )

Get the string length of the folder name.

Returns
The string length of the folder name
unsigned int anfo::SeasonHeader::getSizeOfGenre ( )

Get the string length of the genre.

Returns
The string length of the genre
unsigned int anfo::SeasonHeader::getSizeOfLanguage ( )

Get the string length of the language.

Returns
The string length of the language
unsigned int anfo::SeasonHeader::getSizeOfName ( )

Get the string length of the name.

Returns
The string length of the name
unsigned int anfo::SeasonHeader::getSizeOfSecondName ( )

Get the string length of the second name.

Returns
The string length of the second name
unsigned int anfo::SeasonHeader::getSizeOfSeenEpisodes ( )

Get the string length of the seen episodes.

Returns
The string length of the seen episodes
unsigned int anfo::SeasonHeader::getSizeOfSubtitle ( )

Get the string length of the subtitles.

Returns
The string length of the subtitles

Member Data Documentation

char anfo::SeasonHeader::anseasonMark[8]
private

The mark of the beginning of a season header. Needs to be 'ANSEASON'.

Definition at line 308 of file Season.h.

char anfo::SeasonHeader::anvaluesMark[8]
private

The mark on the beginning of the string block. Needs to be 'ANVALUES'.

Definition at line 335 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfDescription
private

The string length of the description (with the zero byte)

Definition at line 320 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfFoldername
private

The string length of the folder name (with the zero byte)

Definition at line 329 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfGenre
private

The string length of the genre (with the zero byte)

Definition at line 317 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfLanguage
private

The string length of the language (with the zero byte)

Definition at line 323 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfName
private

The string length of the name (with the zero byte)

Definition at line 311 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfSecondName
private

The string length of the second name (with the zero byte)

Definition at line 314 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfSeenEpisodes
private

The string length of seen episodes (with the zero byte)

Definition at line 332 of file Season.h.

unsigned int anfo::SeasonHeader::sizeOfSubtitle
private

The string length of the subtitle language (with the zero byte)

Definition at line 326 of file Season.h.


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