search for: yamlmap

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

Did you mean: rammap
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...m age: 20 - name: Richard age: 27 speaks-french: true - name: Harry age: 23 To read or write such yaml data you would define a C++ type: for the mapping (a struct), one for the sequence of those mappings (a typedef). In the struct you add a yamlMapping() method which associates mapping keys with field names and the fields's type. (Note: the yamlMapping() method was inspired by the boost serialize() method). using llvm::yaml::Sequence; using llvm::yaml::DocumentList; using llvm::yaml::IO; using llvm::yaml::Input; using llvm::yaml::Output;...