| Brad Bishop | b604480 | 2017-05-07 23:14:57 -0400 | [diff] [blame] | 1 | const std::array<std::string, ${len(meta)}> meta = { | 
|  | 2 | % for m in meta: | 
|  | 3 | "${m.name}"s, | 
|  | 4 | % endfor | 
|  | 5 | }; | 
|  | 6 |  | 
|  | 7 | const std::array<std::string, ${len(paths)}> paths = { | 
|  | 8 | % for p in paths: | 
|  | 9 | "${p.name}"s, | 
|  | 10 | % endfor | 
|  | 11 | }; | 
|  | 12 |  | 
|  | 13 | const std::array<PathMeta, ${len(pathmeta)}> pathMeta = {{ | 
|  | 14 | % for p in pathmeta: | 
|  | 15 | PathMeta{ paths[${p.path}], meta[${p.meta}] }, | 
|  | 16 | % endfor | 
|  | 17 | }}; | 
|  | 18 |  | 
|  | 19 | const std::array<RefVector<const std::string>, ${len(pathgroups)}> groups = {{ | 
|  | 20 | % for g in pathgroups: | 
|  | 21 | // ${g.name} | 
|  | 22 | { | 
|  | 23 | % for p in g.members: | 
|  | 24 | paths[${p[0]}], | 
|  | 25 | % endfor | 
|  | 26 | }, | 
|  | 27 | % endfor | 
|  | 28 | }}; |