What is the C++ way of calling 'Add Spline Mesh Component'?

I would be greatly interested in this as well!