Extract AFD?

Is there a way (ok, better, how...) to extract facilities data, airports, navaids, their location, country, frequency, runways bla bla in e. g. a C/C++ program? And maybe write that stuff into a file? I have no big clue of the inner workings of a BGL.
Thanks!
alien9
Thanks!
alien9