a simple generator for c++ declaration/implementation