Translate Extruder class to C++

Submitting mainly for review. Is there a better way to do all those fields?