]> git.tdb.fi Git - poefilter.git/blobdiff - source/category.h
Created combined best/second_at_level categories
[poefilter.git] / source / category.h
index 0c549fa9811e54a72a8bcc4a9ad7c2be11033ddb..2fb30840321e35de03b4ebece9e933c282e4c754 100644 (file)
@@ -33,7 +33,8 @@ public:
 
        private:
                void and_();
-               void appearance(const std::string &);
+
+               void category(const std::string &);
 
                template<typename T>
                void condition(typename T::Type);
@@ -52,17 +53,21 @@ public:
        };
 
 private:
+       std::string name;
        Condition *condition;
        unsigned order;
        Appearance appearance;
 
 public:
        Category();
+       Category(const std::string &, unsigned);
        Category(const Category &);
        Category &operator=(const Category &);
        ~Category();
 
+       const std::string &get_name() const { return name; }
        unsigned get_order() const { return order; }
+       const Appearance &get_appearance() const { return appearance; }
        void create_statements(std::list<FilterStatement> &) const;
 };