Displaying 1 result from an estimated 1 matches for "colorconversions".
Did you mean:
color_conversion
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...internally. To handle that, you define conversion tables and hand them to YAMLIO. For instance:
using llvm::yaml::IO;
using llvm::yaml::Input;
using llvm::yaml::Output;
using llvm::yaml::YamlMap;
using llvm::yaml::UniqueValue;
using llvm::yaml::BitValue;
static const UniqueValue<Colors> colorConversions[] = {
{cRed, "red"},
{cBlue, "blue"},
{cGreen, "green"},
{cRed, NULL} // default value for optional keys
};
static const BitValue<uint32_t> flagConversions[] = {
{FlagBig, "big"},
{FlagLittle, "little"},
{Flag...