|
anfo
1.0
|
Class to manage animes. More...
#include <Anime.h>

Public Member Functions | |
| Anime () | |
| Empty constructor. More... | |
| Anime (std::string filename) | |
| Constructor with a filename. More... | |
| void | load (std::string filename) |
| Methode to load an anfo file. More... | |
| void | save () |
| Methode to save an anfo file. More... | |
| void | save (std::string filename) |
| Methode to save an anfo file. More... | |
| std::string | getName () const |
| Returns the name of the anime. More... | |
| std::string | getSecondName () const |
| Returns the second name of the anime. More... | |
| std::string | getCoverName () const |
| Returns the name of the cover file. More... | |
| std::list< Season > & | getSeasonList () |
| Returns a list with the seasons. More... | |
| unsigned int | getSeasonCount () |
| Returns the number of seasons. More... | |
| void | setName (std::string _name) |
| Sets the name of the anime. More... | |
| void | setSecondName (std::string _secondName) |
| Sets the second name of the anime. More... | |
| void | setCoverName (std::string _coverName) |
| Sets the name of the cover file. More... | |
Private Attributes | |
| std::string | name |
| The name of the anime. More... | |
| std::string | secondName |
| An alternative name, the japanese name for example. More... | |
| std::string | coverName |
| The name of the cover file (for example 'cover.jpg') More... | |
| std::list< Season > | seasons |
| The seasons/specials/ova's of the anime. More... | |
Class to manage animes.
This is the main class of the anfo project.
It contains the informations about the anime and a list of seasons.
It makes the modulation of the file easier.
| anfo::Anime::Anime | ( | ) |
Empty constructor.
Creates an empty anfo file
| anfo::Anime::Anime | ( | std::string | filename | ) |
Constructor with a filename.
Creates and loads an anfo file
| filename | The file name of the anfo file |
| anfo::Exception::ID_ANIME_MARK | If the ANIME-marks are not at the correct position. |
| std::string anfo::Anime::getCoverName | ( | ) | const |
Returns the name of the cover file.
The file should be in the same directory like the anfo file,
but it can be used a relative path.
| std::string anfo::Anime::getName | ( | ) | const |
Returns the name of the anime.
| unsigned int anfo::Anime::getSeasonCount | ( | ) |
Returns the number of seasons.
| std::list<Season>& anfo::Anime::getSeasonList | ( | ) |
Returns a list with the seasons.
| std::string anfo::Anime::getSecondName | ( | ) | const |
Returns the second name of the anime.
| void anfo::Anime::load | ( | std::string | filename | ) |
Methode to load an anfo file.
This methodes loads and deserializes an anfo file.
| filename | The file name of the anfo file. |
| anfo::Exception::ID_ANIME_MARK | If the anime marks are not at the correct position. |
| void anfo::Anime::save | ( | ) |
Methode to save an anfo file.
This methode saves and serializes the anime in an anfo file. The name of the file will be The name of the anime with the extention '.anfo'
| void anfo::Anime::save | ( | std::string | filename | ) |
Methode to save an anfo file.
This methode saves and serializes the anime in an anfo file. The name of the file can be choosen
| filename | The file name for the anfo file. |
| void anfo::Anime::setCoverName | ( | std::string | _coverName | ) |
Sets the name of the cover file.
| _coverName | The new file name for the cover. |
| void anfo::Anime::setName | ( | std::string | _name | ) |
Sets the name of the anime.
| _name | The new name for the anime. |
| void anfo::Anime::setSecondName | ( | std::string | _secondName | ) |
Sets the second name of the anime.
The second name could be the translation of the name
or a sub title.
| _secondName | The new second name for the anime. |
|
private |
|
private |
|
private |
1.8.7