Stores parsed file information regarding a single episode; to be used as a vector. More...
#include <episode.hpp>
Public Member Functions | |
Episode () | |
Default constructor. More... | |
Episode (int, int, string, string, string, string, string, string) | |
Saves the info required to describe a particular episode. More... | |
~Episode () | |
Default destructor. More... | |
bool | reset (int, int, string, string, string, string, string, string) |
Resets the info required to describe a particular episode. More... | |
int | getNumber () const |
int | getExtra () const |
string | getPart () const |
string | getTitle () const |
string | getOldFile () const |
string | getOldDir () const |
string | getFilename () const |
string | getDirectory () const |
Private Attributes | |
int | number |
The episode number. More... | |
int | extra |
The extra episode number. More... | |
string | part |
The episode part. More... | |
string | title |
The name of the episode. More... | |
string | oldfile |
The old name of the file. More... | |
string | olddir |
The old location of the file on disk. More... | |
string | filename |
The new name of the file. More... | |
string | directory |
The new location of the file on disk. More... | |
Stores parsed file information regarding a single episode; to be used as a vector.
The information stored in an Episode type object can contain: episode number, extra episode number, partial episode number, name of the episode (title), old filename, old directory, new filename, new directory.
Definition at line 25 of file episode.hpp.
Episode::Episode | ( | ) |
Default constructor.
Definition at line 23 of file episode.cpp.
Episode::Episode | ( | int | num, |
int | xep, | ||
string | pep, | ||
string | titl, | ||
string | file1, | ||
string | dir1, | ||
string | file2, | ||
string | dir2 | ||
) |
Saves the info required to describe a particular episode.
num | - the episode number |
xep | - the end number of a multi-episode file |
pep | - the information for a multi-part episode file |
titl | - the title of the episode |
file1 | - the original file name |
dir1 | - the original directory path |
file2 | - the modified file name |
dir2 | - the modified directory path |
Definition at line 35 of file episode.cpp.
Episode::~Episode | ( | ) |
Default destructor.
Definition at line 57 of file episode.cpp.
string Episode::getDirectory | ( | ) | const |
Definition at line 137 of file episode.cpp.
int Episode::getExtra | ( | ) | const |
Definition at line 101 of file episode.cpp.
string Episode::getFilename | ( | ) | const |
Definition at line 131 of file episode.cpp.
int Episode::getNumber | ( | ) | const |
Definition at line 95 of file episode.cpp.
string Episode::getOldDir | ( | ) | const |
Definition at line 125 of file episode.cpp.
string Episode::getOldFile | ( | ) | const |
Definition at line 119 of file episode.cpp.
string Episode::getPart | ( | ) | const |
Definition at line 107 of file episode.cpp.
string Episode::getTitle | ( | ) | const |
Definition at line 113 of file episode.cpp.
bool Episode::reset | ( | int | num, |
int | xep, | ||
string | pep, | ||
string | titl, | ||
string | file1, | ||
string | dir1, | ||
string | file2, | ||
string | dir2 | ||
) |
Resets the info required to describe a particular episode.
num | - the episode number |
xep | - the end number of a multi-episode file |
pep | - the information for a multi-part episode file |
titl | - the title of the episode |
file1 | - the original file name |
dir1 | - the original directory path |
file2 | - the modified file name |
dir2 | - the modified directory path |
Definition at line 70 of file episode.cpp.
|
private |
The new location of the file on disk.
Definition at line 55 of file episode.hpp.
|
private |
The extra episode number.
Definition at line 49 of file episode.hpp.
|
private |
The new name of the file.
Definition at line 54 of file episode.hpp.
|
private |
The episode number.
Definition at line 48 of file episode.hpp.
|
private |
The old location of the file on disk.
Definition at line 53 of file episode.hpp.
|
private |
The old name of the file.
Definition at line 52 of file episode.hpp.
|
private |
The episode part.
Definition at line 50 of file episode.hpp.
|
private |
The name of the episode.
Definition at line 51 of file episode.hpp.