Project
Category.h
Go to the documentation of this file.
1 #ifndef CATEGORY_H
2 #define CATEGORY_H
3 
10 #include <iostream>
11 
20 class Category {
21 public:
28  Category(std::string category_id = "", int cat_rank = -1);
29 
35  Category(const Category &category);
36 
37  ~Category(){};
38 
46  friend std::ostream &operator<<(std::ostream &out, const Category &category);
47 
55  friend bool operator==(const Category &cat1, const Category &cat2);
56 
57  std::string category_id_;
58  int rank_;
59 };
60 
61 #endif
Category datastructure.
Definition: Category.h:20
friend std::ostream & operator<<(std::ostream &out, const Category &category)
Category(std::string category_id="", int cat_rank=-1)
friend bool operator==(const Category &cat1, const Category &cat2)
Category(const Category &category)