X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcategory.h;h=2fb30840321e35de03b4ebece9e933c282e4c754;hb=5f59e6d2add65d7d0e98e3d43d6223ca1c240a5f;hp=0c549fa9811e54a72a8bcc4a9ad7c2be11033ddb;hpb=74086c211f082f6f47c3d038dd308a257a81e006;p=poefilter.git diff --git a/source/category.h b/source/category.h index 0c549fa..2fb3084 100644 --- a/source/category.h +++ b/source/category.h @@ -33,7 +33,8 @@ public: private: void and_(); - void appearance(const std::string &); + + void category(const std::string &); template 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 &) const; };