All Classes Files Functions Variables Enumerations Enumerator Macros
show.hpp
Go to the documentation of this file.
1 
12 #ifndef SHOWCLASS
13 #define SHOWCLASS
14 
15 #include <string>
16 #include <vector>
17 
18 #include "season.hpp"
19 #include "handler.hpp"
20 
21 using namespace std;
22 
30 
31 class Show
32 {
33 public:
34  // Constructor and destructor
35  Show(); // Default constructor
36  Show( int, string ); // Constructor
37  ~Show(); // Default destructor
38 
39  // User methods
40  bool addSeason( int, vector<ErrorHandler> & ); // Add a season to this show
41 
42  bool setIndex( int ); // Sets the show name index
43  int getIndex() const; // Gets the show name index
44 
45  bool setShowname( string ); // Sets the show name
46  string getShowname() const; // Gets the show name
47 
48  vector<Season> seasons;
49 
50 private:
51  bool sortAscending(); // Sort seasons in ascending order
52 
53  int index;
54  string showname;
55  int numSeasons;
57 };
58 
59 #endif
int numSeasons
The number of seasons for *this show.
Definition: show.hpp:55
Stores all info required to describe an entire TV show.
Definition: show.hpp:31
int index
The show name's index.
Definition: show.hpp:53
The Season class stores all info required to describe a particular season of a TV show...
vector< Season > seasons
A vector that holds the Season objects.
Definition: show.hpp:48
The ErrorHandler class stores an error as it occurs.
string showname
The show's name.
Definition: show.hpp:54
int numEpisodes
The number of episodes for *this show.
Definition: show.hpp:56