CategoryInfo.h 857 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*!
  2. * \file CategoryInfo.h
  3. * \brief
  4. * \author Gapchich Vladislav
  5. * \date 23/10/11
  6. */
  7. #ifndef __CATEGORYINFO_H__
  8. #define __CATEGORYINFO_H__
  9. #include <iostream>
  10. #include <string>
  11. namespace OBJREC {
  12. //! \brief Contains category name, it's color, id, flag
  13. //! indicating if it's main or not and methods for working with them
  14. class CategoryInfo
  15. {
  16. public:
  17. CategoryInfo();
  18. CategoryInfo(const CategoryInfo &copy);
  19. ~CategoryInfo();
  20. std::string categoryName() const;
  21. int id() const;
  22. unsigned int color() const;
  23. bool isMain() const;
  24. void setCategoryName(const std::string &aCategoryName);
  25. void setID(const int &anID);
  26. void setColor(const unsigned int &aColor);
  27. void setMain(bool aMain = true);
  28. private:
  29. std::string category_name_;
  30. int id_;
  31. unsigned int color_;
  32. bool is_main_;
  33. };
  34. } //namespace
  35. #endif /* __CATEGORYINFO_H__ */
  36. /*
  37. *
  38. */