|
anfo
1.0
|
Anime header in the file. More...
#include <Anime.h>

Public Member Functions | |
| AnimeHeader () | |
| Empty constructor. More... | |
| AnimeHeader (Anime *anime) | |
| Constructor build from an anime. More... | |
| unsigned int | getVersionMajor () |
| Get the major version. More... | |
| unsigned int | getVersionMinor () |
| Get the minor version. More... | |
| unsigned int | getSizeOfName () |
| Get the size of the name string (with the zero byte) More... | |
| unsigned int | getSizeOfSecondName () |
| Get the size of the second name string (with the zero byte) More... | |
| unsigned int | getSizeOfCoverName () |
| Get the size of the cover file name (with the zero byte) More... | |
| unsigned int | getNumberOfSeasons () |
| Get the number of seasons. More... | |
| bool | checkMarks () |
| Check the header of errors. More... | |
Private Attributes | |
| char | anfoMark [4] |
| The mark to beginning of an file. Needs to be 'ANFO'. More... | |
| unsigned int | versionMajor |
| The major version of the file. More... | |
| unsigned int | versionMinor |
| The minor version of the file. More... | |
| unsigned int | sizeOfName |
| The size of the name. More... | |
| unsigned int | sizeOfSecondName |
| The size of the second name. More... | |
| unsigned int | sizeOfCoverName |
| The size of the cover name. More... | |
| unsigned int | numberOfSeasons |
| The number of seasons. More... | |
| char | reserved [128] |
| Reserved bytes for future versions. More... | |
| char | anvaluesMark [8] |
| The mark of the beginning of the string values. Needs to be 'ANVALUE'. More... | |
Anime header in the file.
On the top of an anfo file, the anfo header describes informations about the anime.
This class prepares a header to write the anime to a file
or read a file to rebuild a anime object.
You can check the file for errors with marks.
| anfo::AnimeHeader::AnimeHeader | ( | ) |
Empty constructor.
Creates an empty header file
| anfo::AnimeHeader::AnimeHeader | ( | Anime * | anime | ) |
Constructor build from an anime.
This constructor builds a header from an anime.
| anime | The anime object with the informations. |
| bool anfo::AnimeHeader::checkMarks | ( | ) |
Check the header of errors.
| unsigned int anfo::AnimeHeader::getNumberOfSeasons | ( | ) |
Get the number of seasons.
| unsigned int anfo::AnimeHeader::getSizeOfCoverName | ( | ) |
Get the size of the cover file name (with the zero byte)
| unsigned int anfo::AnimeHeader::getSizeOfName | ( | ) |
Get the size of the name string (with the zero byte)
| unsigned int anfo::AnimeHeader::getSizeOfSecondName | ( | ) |
Get the size of the second name string (with the zero byte)
| unsigned int anfo::AnimeHeader::getVersionMajor | ( | ) |
Get the major version.
| unsigned int anfo::AnimeHeader::getVersionMinor | ( | ) |
Get the minor version.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.7