1 #include <msp/strings/format.h>
9 void operator>>(const LexicalConverter &conv, Predicate &pred)
11 const string &str = conv.get();
14 else if(str=="ALWAYS")
18 else if(str=="LEQUAL")
22 else if(str=="GREATER")
24 else if(str=="GEQUAL")
26 else if(str=="NOTEQUAL")
29 throw lexical_error(format("conversion of '%s' to Predicate", str));
32 void operator<<(LexicalConverter &conv, Predicate pred)
36 case NEVER: conv.result("NEVER"); break;
37 case ALWAYS: conv.result("ALWAYS"); break;
38 case LESS: conv.result("LESS"); break;
39 case LEQUAL: conv.result("LEQUAL"); break;
40 case EQUAL: conv.result("EQUAL"); break;
41 case GREATER: conv.result("GREATER"); break;
42 case GEQUAL: conv.result("GEQUAL"); break;
43 case NOTEQUAL: conv.result("NOTEQUAL"); break;
44 default: conv.result(format("Predicate(%#x)", static_cast<int>(pred))); break;