What can I do to show all the elements inside a namespace in C++?
It’s possible to separate namespaces and print them all using Doxygen? Using GCC?
I’m assuming that I do not know the namespace name so I want to print them all or I know a specific namespace name and I want to know what is inside.
C++ doesn’t have reflection (like for example many dynamic languages or Java and .NET) so it is not possible from within C++.
Doxygen can export its data to XML instead of HTML so you can use a XSLT-stylesheet to transform the XML output of Doxygen to whatever format you desire.
There is a version of GCC called GCC-XML which instead of compiling outputs a XML-representation of the the parsed C++ code, here you could do the same.
Last but not least you can of course create a plugin for GCC of Clang and do it in there (GCC for example can use plugins written in Javascript using the Dehydra patch from Mozilla).
I would recommend looking at the Doxygen XML output.