add factoryGenerator microframework c++