Namespaces
"Daniel J. Hilferty" <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <[email protected]> |
I have had some trouble with the way namespaces are handled in the XML
output, so I dug into the Doxygen code a little bit. In an instance
where I have a C++ namespace declared as:
namespace ExampleNamespace {
class A {
....
}
}
I have found that the name of class A is rolled up into
ExampleNamespace::A, so that there is no difference between the
namespace name and the class name. I looked through xmlgen.cpp and
found that when outputting the class name A, the namespace (found
through a getNamespaceDef call in the ClassDef object) is undefined.
After this, I searched through doxygen.cpp and found that in static void
addClassToContect(Entry *root) that the namespace of a class is stripped
off into namespaceName and then never used. Is this the desired
behavior? It seems to me that this name should be used to find the
innermost namespace and assigned to m_nspace in order to fully define
ClassDef.
Dan
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642