Indeed. Not many easy answers there, though.
It seems that we need the appropriate "Data Export Programming Guide" ... does anybody have it?

Meanwhile, a few minutes with Our Friend has thrown up these links, some of which may render a few more clues (or at least an idea of what's likely to be involved, and the terminology used):-
AAMI .pdf
Shivam Kalra's
BlogMore
clues from Shivam ... interesting if you're into C (and if not, why not?)

University of
Cyprus .pdf
Meanwhile, here's something (hopefully) related:-
Demed. And (lastly), here's another guy who has obviously "already been there":-
Richard Grier* (there's some very interesting stuff on that website; so why not put the kettle on then spend fifteen minutes browsing around on there?).
*
Who is a member of this forum, by the way.