7 #include <msp/datafile/objectloader.h>
8 #include <msp/io/base.h>
9 #include "appearance.h"
19 std::list<std::string> lines;
25 void add_line(const std::string &);
27 static void add_line(std::list<FilterStatement> &, const std::string &);
29 void write(Msp::IO::Base &) const;
36 class Loader: public Msp::DataFile::ObjectLoader<Filter>
42 Loader(Filter &, const PoeFilter &);
45 static std::string glob_to_re(const std::string &);
46 static bool category_order(const Category *, const Category *);
47 void add_categories(const std::string &, bool);
49 void cancel(const std::string &);
50 void hide(const std::string &);
51 void include(const std::string &);
52 void show(const std::string &);
59 const Category *category;
60 Appearance appearance;
63 std::list<Block> blocks;
69 bool is_abstract() const { return abstract; }
70 void write(Msp::IO::Base &) const;