1 #include <msp/core/maputils.h>
9 Logic::Loader::Loader(Logic &l, const map<string, Widget *> &w):
13 add("bind", &Loader::bind);
16 void Logic::Loader::bind(const string &wdg, const string &data)
19 act.wdg = get_item(widgets, wdg);
21 string::size_type colon = data.find(':');
22 act.type = data.substr(0, colon);
23 if(colon!=string::npos)
24 act.data = data.substr(colon+1);
25 logic.bindings.push_back(act);