C++ class source generator