|
anfo
1.0
|
Class to manage seasons. More...
#include <Season.h>

Public Types | |
| enum | { SEASON = 1, SPECIAL, OVA, MOVIES, INVALID } |
Public Member Functions | |
| Season () | |
| Constructor. More... | |
| void | clearPersonallyInformations () |
| Deletes the personally informations. More... | |
| void | saveToFile (std::ofstream &saveStream) |
| Saves the season to a file stream. More... | |
| void | loadFromFile (std::ifstream &loadStream) |
| Loads the season from a file stream. More... | |
| unsigned int | getSeasonNumber () |
| Get the season number. More... | |
| unsigned int | getType () |
| Get the Type. More... | |
| unsigned int | getEpisodes () |
| Get the number of episodes in this season. More... | |
| unsigned int | getAgeLimit () |
| Get the minimum age to watch this anime. More... | |
| std::string | getName () |
| Get the name of this season. More... | |
| std::string | getSecondName () |
| Get the alternative name of this season. More... | |
| std::string | getGenre () |
| Get the genre of this season. More... | |
| std::string | getDescription () |
| Get the Description of this season. More... | |
| std::string | getLanguage () |
| Get the language of the videos of this season. More... | |
| std::string | getSubtitle () |
| Get the language of the subtitles of the season. More... | |
| std::string | getFoldername () |
| Get the Foldername where the video files are stored. More... | |
| unsigned int | getWatched () |
| Get the number of seen episodes. More... | |
| std::list< std::string > & | getSeenEpisodes () |
| Get the list of seen episodes. More... | |
| unsigned char | getRating () |
| Get the rating of this season. More... | |
| void | setSeasonNumber (unsigned int _seasonNumber) |
| Set the season number. More... | |
| void | setType (unsigned int _type) |
| Set the type of this season. More... | |
| void | setEpisodes (unsigned int _episodes) |
| Set the number of episodes this season contains. More... | |
| void | setAgeLimit (unsigned int _ageLimit) |
| Set the age limit of this season. More... | |
| void | setName (std::string _name) |
| Set the name of this season. More... | |
| void | setSecondName (std::string _secondName) |
| Set the alternative name of this season. More... | |
| void | setGenre (std::string _genre) |
| Set the genre of this season. More... | |
| void | setDescription (std::string _description) |
| Set the description of this season. More... | |
| void | setLanguage (std::string _language) |
| Set the language of this season. More... | |
| void | setSubtitle (std::string _subtitle) |
| Set the subtitles language of this season. More... | |
| void | setFoldername (std::string _foldername) |
| Set the folder name, where the files are stored. More... | |
| void | setWatched (unsigned int _watched) |
| Set if the season is watched. More... | |
| void | setSeenEpisodes (std::list< std::string > _seenEpisodes) |
| Set the list of seen episodes. More... | |
| void | addSeenEpisode (std::string _seenEpisode) |
| Add a seen episode to this list. More... | |
| void | setRating (unsigned char _rating) |
| Set a rating for this season. More... | |
Private Attributes | |
| unsigned int | seasonNumber |
| The season number (e.g. season 1, season 2, ...) More... | |
| unsigned int | type |
| The season type (OVA, Movie, Season, ...) More... | |
| unsigned int | episodes |
| The number of episodes in this season (0, if unknown or continued) More... | |
| unsigned int | ageLimit |
| The minimum age for watching this anime. More... | |
| std::string | name |
| The name of this season. More... | |
| std::string | secondName |
| An alternative name, the japanese name for example. More... | |
| std::string | genre |
| The genre(s) of the season. More... | |
| std::string | description |
| A description about the season. More... | |
| std::string | language |
| The language(s) of the video files of the season. More... | |
| std::string | subtitle |
| The language(s) of the subtitles of the season. More... | |
| std::string | foldername |
| The folder where the video files are stored. More... | |
| unsigned int | watched |
| 0 = unwatched, else = unixtime you have watched it More... | |
| std::list< std::string > | seenEpisodes |
| List of the seen Episodes (File names) More... | |
| unsigned char | rating |
| A rating from 0 (0.0, worst) until 100 (10.0, best) More... | |
Class to manage seasons.
This class manages the seasons of an anime.
It contains the informations about the season and needs to be in an anime class.
It makes the modulation of the season part of the file easier.
| anonymous enum |
| anfo::Season::Season | ( | ) |
Constructor.
Creates an empty season
| void anfo::Season::addSeenEpisode | ( | std::string | _seenEpisode | ) |
Add a seen episode to this list.
| _seenEpisode | The name of the file which is to add |
| void anfo::Season::clearPersonallyInformations | ( | ) |
Deletes the personally informations.
Deletes the personally informations like:
watched, rating and seen episodes.
Keeps the generally informations
| unsigned int anfo::Season::getAgeLimit | ( | ) |
Get the minimum age to watch this anime.
| std::string anfo::Season::getDescription | ( | ) |
Get the Description of this season.
| unsigned int anfo::Season::getEpisodes | ( | ) |
Get the number of episodes in this season.
| std::string anfo::Season::getFoldername | ( | ) |
Get the Foldername where the video files are stored.
| std::string anfo::Season::getGenre | ( | ) |
Get the genre of this season.
| std::string anfo::Season::getLanguage | ( | ) |
Get the language of the videos of this season.
| std::string anfo::Season::getName | ( | ) |
Get the name of this season.
| unsigned char anfo::Season::getRating | ( | ) |
Get the rating of this season.
| unsigned int anfo::Season::getSeasonNumber | ( | ) |
Get the season number.
| std::string anfo::Season::getSecondName | ( | ) |
Get the alternative name of this season.
| std::list<std::string>& anfo::Season::getSeenEpisodes | ( | ) |
Get the list of seen episodes.
| std::string anfo::Season::getSubtitle | ( | ) |
Get the language of the subtitles of the season.
| unsigned int anfo::Season::getType | ( | ) |
| unsigned int anfo::Season::getWatched | ( | ) |
Get the number of seen episodes.
| void anfo::Season::loadFromFile | ( | std::ifstream & | loadStream | ) |
Loads the season from a file stream.
| loadStream | The stream. Needs to be open. |
| anfo::Exception::ID_SEASON_MARK | If the season marks are not at the correct position. |
| void anfo::Season::saveToFile | ( | std::ofstream & | saveStream | ) |
Saves the season to a file stream.
| saveStream | The stream. Needs to be open. |
| void anfo::Season::setAgeLimit | ( | unsigned int | _ageLimit | ) |
Set the age limit of this season.
| _ageLimit | The age limit of this season |
| void anfo::Season::setDescription | ( | std::string | _description | ) |
Set the description of this season.
| _description | The description of this season |
| void anfo::Season::setEpisodes | ( | unsigned int | _episodes | ) |
Set the number of episodes this season contains.
| _episodes | the new number of episodes |
| void anfo::Season::setFoldername | ( | std::string | _foldername | ) |
Set the folder name, where the files are stored.
| _foldername | The name of the folder |
| void anfo::Season::setGenre | ( | std::string | _genre | ) |
Set the genre of this season.
| _genre | The genre of this season |
| void anfo::Season::setLanguage | ( | std::string | _language | ) |
Set the language of this season.
| _language | The language of the season |
| void anfo::Season::setName | ( | std::string | _name | ) |
Set the name of this season.
| _name | The name of this season |
| void anfo::Season::setRating | ( | unsigned char | _rating | ) |
Set a rating for this season.
| _rating | Only the range from 0 to 100 is valid |
| void anfo::Season::setSeasonNumber | ( | unsigned int | _seasonNumber | ) |
Set the season number.
| _seasonNumber | The new season number |
| void anfo::Season::setSecondName | ( | std::string | _secondName | ) |
Set the alternative name of this season.
| _secondName | The alternative name of this season |
| void anfo::Season::setSeenEpisodes | ( | std::list< std::string > | _seenEpisodes | ) |
Set the list of seen episodes.
| _seenEpisodes | A new list of seen episodes |
| void anfo::Season::setSubtitle | ( | std::string | _subtitle | ) |
Set the subtitles language of this season.
| _subtitle | The subtitles language of the season |
| void anfo::Season::setType | ( | unsigned int | _type | ) |
Set the type of this season.
| _type | The new type of this season/folder |
| anfo::Exception::ID_INVALID_TYPE | If the type is invalid |
| void anfo::Season::setWatched | ( | unsigned int | _watched | ) |
Set if the season is watched.
| _watched | true, if watched, false, if not watched |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.7