-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.h
61 lines (46 loc) · 1.2 KB
/
store.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Store.h
* Store class read files for movies, customers, and commands.
* This class stores the list of commands and process them.
*
* @author Olga Kuriatnyk
*/
#ifndef STORE_H
#define STORE_H
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include "command.h"
#include "customer.h"
#include "customerContainer.h"
#include "inventory.h"
#include "movie.h"
using namespace std;
class Store {
public:
// defaulf constructor
Store() = default;
// destructor
~Store();
// copy constructor not allowed
Store(const Store &c) = delete;
// move not allowed
Store(Store &&other) = delete;
// assignment not allowed
Store &operator=(const Store &other) = delete;
// move assignment not allowed
Store &operator=(Store &&other) = delete;
// reading list of customers from the file
void readCustomersFromFile(const string &filename);
// read list of movies from the file
void readMoviesFromFile(const string &filename);
// reading commands from the file
void readCommandsFromFile(const string &filename);
// processing all comands
void processCommands();
private:
// data structure for all commands
vector<Command *> commands;
};
#endif