A C++ class registerer, inspired by the Factory design pattern