]> git.tdb.fi Git - poefilter.git/blobdiff - source/category.h
Associate categories and appearances at filter level
[poefilter.git] / source / category.h
index 0c549fa9811e54a72a8bcc4a9ad7c2be11033ddb..dd47191e7bcd9d88a0aa59bceceb3e1e43bd52f7 100644 (file)
@@ -33,7 +33,6 @@ public:
 
        private:
                void and_();
-               void appearance(const std::string &);
 
                template<typename T>
                void condition(typename T::Type);
@@ -52,17 +51,20 @@ public:
        };
 
 private:
+       std::string name;
        Condition *condition;
        unsigned order;
        Appearance appearance;
 
 public:
-       Category();
+       Category(const std::string & = std::string());
        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;
 };