6 #include <msp/datafile/objectloader.h>
7 #include "appearance.h"
11 class FilterStatement;
18 class Loader: public Msp::DataFile::ObjectLoader<Category>
22 CompoundCondition *compound;
23 Appearance::Loader app_loader;
26 Loader(Category &, const PoeFilter &, CompoundCondition * = 0);
30 void add_range(const std::string &);
32 void add_condition(Condition *);
38 void condition(typename T::Type);
41 void condition_max(typename T::Type);
44 void condition_min(typename T::Type);
47 void condition_range(typename T::Type, typename T::Type);
49 void linked_colors(const LinkedColorsCondition::Colors &);
57 Appearance appearance;
60 Category(const std::string & = std::string());
61 Category(const Category &);
62 Category &operator=(const Category &);
65 const std::string &get_name() const { return name; }
66 unsigned get_order() const { return order; }
67 const Appearance &get_appearance() const { return appearance; }
68 void create_statements(std::list<FilterStatement> &) const;