class basic_ui { // typedef cuth_util::basic_functor cmd_fpn; // typedef std::map cmd_type; typedef int (basic_ui::*cmd_fpn)(const string_type&); typedef std::map cmd_type; Station::tvlist *tv_; public: bool reg(Station::tvlist *t) { tv_ = t; return true; } void unreg(Station::tvlist *t) { if (tv_ == t) tv_ = 0; } void cmd_reg(); bool cmd_reg(char,cmd_fpn*, const string_type&); void cmd_unreg(char); bool cmd_status(char); string_type cmd_descr(char); void f(); private: int favourites(const string_type&); }; extern basic_ui glob_ui_; void parse(std::istream*);