How to get hierarchy from a skp model using components through sketchup sdk in C++

I am trying to get the component information using C++ while parsing a skp model. I want the information just like we have in the outliner in sketchup editor - something like in the image.
I tried using component_instance and component_definition, but couldn’t get much.

Again, you need to study the examples that come with the SDK package.
(It is not appropriate to repost them here.)

How can I get SDK package? I have sent download request from sketchup developer, and the email tell me they will process my application within 1-2 weeks, but I just get nothing after waiting a month.

ping @ChrisFullmer

One can refer to writing skp to xml sample. That really helped me a lot !