summaryrefslogtreecommitdiff
path: root/docs/doxygen/doxyxml/doxyindex.py
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2013-04-27 15:53:27 -0700
committerBen Reynwar <ben@reynwar.net>2013-04-27 15:53:27 -0700
commit7ffda05db5aeb0bdd590a10b6d340fa49192b7fd (patch)
treeefce93d281b2691820cf4469c10a01a6e834749b /docs/doxygen/doxyxml/doxyindex.py
parent34d7e68c57587a9fde2d0f42878638730a897ef6 (diff)
doxyxml: Parse contents of namespaces (necessary for parsing pmt's doxygen).
Diffstat (limited to 'docs/doxygen/doxyxml/doxyindex.py')
-rw-r--r--docs/doxygen/doxyxml/doxyindex.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/docs/doxygen/doxyxml/doxyindex.py b/docs/doxygen/doxyxml/doxyindex.py
index 8c5502a61f..69c6de07f5 100644
--- a/docs/doxygen/doxyxml/doxyindex.py
+++ b/docs/doxygen/doxyxml/doxyindex.py
@@ -43,13 +43,16 @@ class DoxyIndex(Base):
self._root = index.parse(os.path.join(self._xml_path, 'index.xml'))
for mem in self._root.compound:
converted = self.convert_mem(mem)
- # For files we want the contents to be accessible directly
- # from the parent rather than having to go through the file
- # object.
+ # For files and namespaces we want the contents to be
+ # accessible directly from the parent rather than having
+ # to go through the file object.
if self.get_cls(mem) == DoxyFile:
if mem.name.endswith('.h'):
self._members += converted.members()
self._members.append(converted)
+ elif self.get_cls(mem) == DoxyNamespace:
+ self._members += converted.members()
+ self._members.append(converted)
else:
self._members.append(converted)
@@ -227,7 +230,17 @@ class DoxyNamespace(DoxyCompound):
__module__ = "gnuradio.utils.doxyxml"
kind = 'namespace'
-
+
+ def _parse(self):
+ if self._parsed:
+ return
+ super(DoxyNamespace, self)._parse()
+ self.retrieve_data()
+ self.set_descriptions(self._retrieved_data.compounddef)
+ if self._error:
+ return
+ self.process_memberdefs()
+
Base.mem_classes.append(DoxyNamespace)