All Classes Files Functions Variables Enumerations Enumerator Macros
episode.hpp
Go to the documentation of this file.
1 
11 #ifndef EPISODECLASS
12 #define EPISODECLASS
13 
14 #include <string>
15 
16 using namespace std;
17 
24 
25 class Episode
26 {
27 public:
28  // Constructor and destructor
29  Episode(); // Default constructor
30  Episode( int, int, string, string,
31  string, string, string, string ); // Constructor
32  ~Episode(); // Default destructor
33 
34  // User methods
35  bool reset( int, int, string, string,
36  string, string, string, string ); // Reset the episode info
37 
38  int getNumber() const; // Retrieves the episode number
39  int getExtra() const; // Retrieves the extra episode number
40  string getPart() const; // Retrieves the partial episode number
41  string getTitle() const; // Retrieves the episode title
42  string getOldFile() const; // Retrieves the old file name
43  string getOldDir() const; // Retrieves the old directory
44  string getFilename() const; // Retrieves the new file name
45  string getDirectory() const; // Retrieves the new directory
46 
47 private:
48  int number;
49  int extra;
50  string part;
51  string title;
52  string oldfile;
53  string olddir;
54  string filename;
55  string directory;
56 };
57 
58 #endif
int extra
The extra episode number.
Definition: episode.hpp:49
string part
The episode part.
Definition: episode.hpp:50
string directory
The new location of the file on disk.
Definition: episode.hpp:55
Stores parsed file information regarding a single episode; to be used as a vector.
Definition: episode.hpp:25
int number
The episode number.
Definition: episode.hpp:48
string filename
The new name of the file.
Definition: episode.hpp:54
string oldfile
The old name of the file.
Definition: episode.hpp:52
string title
The name of the episode.
Definition: episode.hpp:51
string olddir
The old location of the file on disk.
Definition: episode.hpp:53