Simple C++ class generator