ComputationalRadiationPhysics / DoDo

Specification of HPC hardware and program components
6 stars 1 forks source link

All Data is returned as string when writing graph to graphml #21

Closed slizzered closed 7 years ago

slizzered commented 8 years ago

All data hast type "string" in the graphml file. This is due to the type of the maps in "getMaps()", see vector<pair<string, map<Key, string>>> maps(tuple_size<T_Labels>::value); (here)

To fix this, the maps need to be a tuple instead of a vector. This tuple has to be generated at compile time with the types that are returned by the toString() methods of the attributes. The type that is returned can be obtained through decltype(((T_Property*)nullptr)->toString())