wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Expose string-to-tid #129

Closed lundmark closed 5 years ago

lundmark commented 5 years ago

It would be really sweet if there was a possibility to get a tid given a type-name as string. That way we can look types up depending on name in runtime etc.

Maybe even sort the types etc so that they can be binary searched or something?

wc-duck commented 5 years ago

https://github.com/wc-duck/datalibrary/blob/master/include/dl/dl_reflect.h#L183