8 istream &operator>>(istream &is, State &state)
18 string::size_type underscore = str.find('_', start);
19 if(!str.compare(start, underscore-start, "NORMAL"))
21 else if(!str.compare(start, underscore-start, "HOVER"))
23 else if(!str.compare(start, underscore-start, "ACTIVE"))
25 else if(!str.compare(start, underscore-start, "FOCUS"))
27 else if(!str.compare(start, underscore-start, "DISABLED"))
31 is.setstate(ios_base::failbit);
35 if(underscore==std::string::npos)