1 #include <msp/strings/format.h>
3 #include "primitivetype.h"
10 void operator>>(const LexicalConverter &conv, PrimitiveType &pt)
12 if(conv.get()=="POINTS")
14 else if(conv.get()=="LINES")
16 else if(conv.get()=="LINE_LOOP")
18 else if(conv.get()=="LINE_STRIP")
20 else if(conv.get()=="TRIANGLES")
22 else if(conv.get()=="TRIANGLE_STRIP")
24 else if(conv.get()=="TRIANGLE_FAN")
27 throw lexical_error(format("conversion of '%s' to PrimitiveType", conv.get()));