All Classes Files Functions Variables Enumerations Enumerator Macros
season.hpp
Go to the documentation of this file.
1 
12 #ifndef SEASONCLASS
13 #define SEASONCLASS
14 
15 #include <string>
16 #include <vector>
17 
18 #include "episode.hpp"
19 
20 using namespace std;
21 
29 
30 class Season
31 {
32 public:
33  // Constructor and destructor
34  Season(); // Default constructor
35  Season( int ); // Constructor
36  ~Season(); // Default destructor
37 
38  // User methods
39  bool addEpisode( int, int, string, string,
40  string, string, string, string ); // Add an episode to the season
41  bool sortAscending(); // Sort episodes by number in ascending order
42 
43  bool setNumber( int ); // Set the number of the current season
44  int getNumber() const; // Get the number of the current season
45  int getNumEps() const; // Get the number of episodes within the current season
46 
47  vector<Episode> episodes;
48 
49 private:
50  int number;
52 };
53 
54 #endif
int numEpisodes
The number of episodes in the season.
Definition: season.hpp:51
int number
The season's number.
Definition: season.hpp:50
vector< Episode > episodes
A vector that holds each Episode.
Definition: season.hpp:47
The Episode class stores parsed file information regarding a single episode; to be used as a vector...
Stores all info required to describe a particular season of a TV show.
Definition: season.hpp:30