void MemExploreApp::keyDown(KeyEvent e) { if(e.getCode() == 27) { // Esc mIsFullscreen = false; setFullScreen(mIsFullscreen); } else if(e.getChar() == 'f') { mIsFullscreen = true; setFullScreen(mIsFullscreen); } else if(e.getChar() == ' ') { delete mDataPointer; mDataPointer = new uint8_t; } else { mKeysDown.insert(e.getChar()); } }
void insert(tr1::unordered_set<string>& st, sbmt::fat_syntax_rule const& r) { vector<string> v; keys(*r.lhs_root(),v); st.insert(v.begin(),v.end()); }
void read(char* fname,tr1::unordered_set<string>& st) { ifstream fs(fname); return st.insert(istream_iterator<string>(fs),istream_iterator<string>()); }