-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmap.h
67 lines (59 loc) · 1.84 KB
/
map.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
62
63
64
65
66
67
/**
* @class Map
* @author Stephen M. Reaves
* @headerfile map.h
* @date Sep 16, 2018
*/
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include "backend.h"
using namespace std;
#ifndef MAP_H
#define MAP_H
class Map : public Backend {
public:
// Constructors and Destructors
Map();
virtual ~Map();
bool Init();
void Die();
bool Store(string file = kDummyFileName) const { return true; };
bool Open(string file = kDummyFileName) const { return true; };
void MakeCloset(){};
string GetClosetName();
string ToString() const;
// Inserts for each type of clothing
// @todo Refactor?
bool InsertShirt(string name, string primary_color, string secondary_color,
string tertiary_color, string pattern, string sleeve_length,
string collar);
bool InsertPants(string name, string primary_color, string secondary_color,
string tertiary_color, string material, string length,
string cut);
bool InsertSocks(string name, string primary_color, string secondary_color,
string tertiary_color, string pattern);
bool InsertShoes(string name, string primary_color, string secondary_color,
string tertiary_color, string material, string style);
bool InsertBelt(string name, string primary_color, string secondary_color,
string tertiary_color, string material, string pattern);
private:
// Variables
string closet_name_ = kDummyClosetName;
int AssignID(string type);
map<int, Shirt> shirt_map_;
map<int, Pants> pants_map_;
map<int, Socks> socks_map_;
map<int, Shoes> shoes_map_;
map<int, Belt> belt_map_;
// Private Functions
Shirt AddShirt();
Pants AddPants();
Socks AddSocks();
Shoes AddShoes();
Belt AddBelt();
};
#endif /* MAP_H */