a tool for generate config and cpp code