All Classes Files Functions Variables Enumerations Enumerator Macros
library.hpp
Go to the documentation of this file.
1 
11 #ifndef LIBRARY
12 #define LIBRARY
13 
14 #include <string>
15 #include <vector>
16 
17 #include "show.hpp"
18 #include "options.hpp"
19 #include "handler.hpp"
20 
21 using namespace std;
22 
29 
30 class Library
31 {
32 public:
33  // Constructors and destructors
34  Library(); // Default constructor
35  ~Library(); // Default destructor
36 
37  bool addEpisode( int, int, int, int, string, string, string,
38  string, string, string, vector<ErrorHandler> &,
39  ConfigOpts * ); // Add an episode, show, and season if required
40 
41  vector<Show> shows;
42 
43 private:
44  bool addShow( int, ConfigOpts *, vector<ErrorHandler> & ); // Add show
45  bool sortAscending(); // Sort shows in ascending order
46 };
47 
48 #endif
vector< Show > shows
A vector that holds each Show.
Definition: library.hpp:41
The Show class stores all info required to describe an entire TV show.
The ErrorHandler class stores an error as it occurs.
The ConfigOpts class stores all config options, settings, and flags for clerk.
Stores all config options, settings, and flags for clerk.
Definition: options.hpp:60
Stores all info required to describe all shows.
Definition: library.hpp:30