How to generate animation curve assets with c++?

Hi,
I’m working on a c++ plugin that takes a root animation sequence and extract the root bone rotation and create a curve that will be assigned to the corresponding InPlace animation asset. My problem, is how create animation curve asset (in c++) and assigns the extracted values to it?