Closed HenningScheufler closed 3 weeks ago
@greole @bevanwsjones @MarcelKoch What are you thoughts?
So this is comparable to the constructorPtr table in OF?
Just a quick comment, lets squash all the "Update ..." into one. Makes it easier to find meaningful comments later on.
The provided code provides a template for compile class discovery in C++.
All derived class are automatically registered inside:
static inline std::unordered_map<std::string, createFunction> classMap;
To sucessfully register the class the derived class needs to defined the following function: static create, static name and call registerClass inside the constructor.
The derived class can now the instantiated by calling the static create function
more details see test_RegisterClass:
TODO: