Update cpp generator so that it outputs basic structure.