diff options
author | Josh Blum | 2011-10-20 09:41:07 -0700 |
---|---|---|
committer | Josh Blum | 2011-11-16 20:38:30 -0800 |
commit | de849caeb9d689ab0ffd9d8279ba0cb1af925753 (patch) | |
tree | be4b7ab8b47c4ba918c54c97064f7d4929b436a1 /docs/doxygen/doxyxml/generated/index.py | |
parent | 9a25332b706b1ffadf8cdf9b405e89c37a1e2278 (diff) | |
download | gnuradio-de849caeb9d689ab0ffd9d8279ba0cb1af925753.tar.gz gnuradio-de849caeb9d689ab0ffd9d8279ba0cb1af925753.tar.bz2 gnuradio-de849caeb9d689ab0ffd9d8279ba0cb1af925753.zip |
docs: grabbed support files from ben's repo and my repo
Diffstat (limited to 'docs/doxygen/doxyxml/generated/index.py')
-rw-r--r-- | docs/doxygen/doxyxml/generated/index.py | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/docs/doxygen/doxyxml/generated/index.py b/docs/doxygen/doxyxml/generated/index.py new file mode 100644 index 000000000..7a70e14a1 --- /dev/null +++ b/docs/doxygen/doxyxml/generated/index.py @@ -0,0 +1,77 @@ +#!/usr/bin/env python + +""" +Generated Mon Feb 9 19:08:05 2009 by generateDS.py. +""" + +from xml.dom import minidom + +import os +import sys +import compound + +import indexsuper as supermod + +class DoxygenTypeSub(supermod.DoxygenType): + def __init__(self, version=None, compound=None): + supermod.DoxygenType.__init__(self, version, compound) + + def find_compounds_and_members(self, details): + """ + Returns a list of all compounds and their members which match details + """ + + results = [] + for compound in self.compound: + members = compound.find_members(details) + if members: + results.append([compound, members]) + else: + if details.match(compound): + results.append([compound, []]) + + return results + +supermod.DoxygenType.subclass = DoxygenTypeSub +# end class DoxygenTypeSub + + +class CompoundTypeSub(supermod.CompoundType): + def __init__(self, kind=None, refid=None, name='', member=None): + supermod.CompoundType.__init__(self, kind, refid, name, member) + + def find_members(self, details): + """ + Returns a list of all members which match details + """ + + results = [] + + for member in self.member: + if details.match(member): + results.append(member) + + return results + +supermod.CompoundType.subclass = CompoundTypeSub +# end class CompoundTypeSub + + +class MemberTypeSub(supermod.MemberType): + + def __init__(self, kind=None, refid=None, name=''): + supermod.MemberType.__init__(self, kind, refid, name) + +supermod.MemberType.subclass = MemberTypeSub +# end class MemberTypeSub + + +def parse(inFilename): + + doc = minidom.parse(inFilename) + rootNode = doc.documentElement + rootObj = supermod.DoxygenType.factory() + rootObj.build(rootNode) + + return rootObj + |