-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclothing.h
executable file
·42 lines (31 loc) · 911 Bytes
/
clothing.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
#include <string>
#include <set>
#include <vector>
#include "product.h"
#ifndef CLOTHING_H
#define CLOTHING_H
class Clothing : public Product{
public:
Clothing(const std::string category, const std::string name, double price, int qty, std::string size, std::string brand);
~Clothing();
/**
* Returns the appropriate keywords that this product should be associated with
*/
std::set<std::string> keywords() const;
/**
* Allows for a more detailed search beyond simple keywords
*/
bool isMatch(std::vector<std::string>& searchTerms) const;
/**
* Returns a string to display the product info for hits of the search
*/
std::string displayString() const;
/**
* Outputs the product info in the database format
*/
void dump(std::ostream& os) const;
private:
std::string size_;
std::string brand_;
};
#endif //CLOTHING_H