LCOV - code coverage report
Current view: top level - Servidor - Interests.h (source / functions) Hit Total Coverage
Test: coverage_merged.info Lines: 1 1 100.0 %
Date: 2016-07-11 17:43:33 Functions: 2 2 100.0 %

          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_ */

Generated by: LCOV version 1.12-4-g04a3c0e