Line data Source code
1 : /*
2 : * Interests.h
3 : *
4 : * Created on: Jun 2, 2016
5 : * Author: tobias
6 : */
7 :
8 : #ifndef SERVIDOR_INTERESTS_H_
9 : #define SERVIDOR_INTERESTS_H_
10 : #include <string>
11 : #include <vector>
12 : #include <map>
13 : #include <algorithm>
14 :
15 : using namespace std;
16 :
17 2219 : class Interests {
18 : public:
19 : Interests();
20 : void add(std::string category, std::string value);
21 : bool has(std::string category, std::string value);
22 : bool getAll(std::string category, std::vector<std::string> &values);
23 : void remove(std::string category, std::string value);
24 : map<string,vector<string>> allInterests();
25 : virtual ~Interests();
26 : private:
27 :
28 : map<string,vector<string>> intereses;
29 : };
30 :
31 : #endif /* SERVIDOR_INTERESTS_H_ */
|