search for: flagbig

Displaying 1 result from an estimated 1 matches for "flagbig".

Did you mean: flag_io
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...eans) were all built-in types . YAMLIO also has support for enumerations and bit masks. Here is an example of a simple enumeration (color) and a bit mask set (flags). Suppose your data structures already defines Colors and Flags: enum Colors { cRed, cBlue, cGreen }; #define FlagBig 1 #define FlagLittle 2 #define FlagRound 4 #define FlagPointy 8 And you want the yaml documents to use human readable values for colors and flags, rather than just the integer value used internally. To handle that, you define conversion tables and hand them to YAMLIO. For instance:...