All pastes #590269 Raw Edit

s_c

public text v1 · immutable
#590269 ·published 2007-06-26 13:43 UTC
rendered paste body
class basic_ui
{
//  typedef cuth_util::basic_functor cmd_fpn;
//  typedef std::map<char, cmd_fpn*> cmd_type;
    typedef int (basic_ui::*cmd_fpn)(const string_type&);
    typedef std::map<char, cmd_fpn*> 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*);