diff options
author | Tom Rondeau | 2011-12-04 11:19:37 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-12-04 11:19:37 -0500 |
commit | 7209280a2b21fb31e5533a17047ed8c6ba5527f1 (patch) | |
tree | f3ef58059fa9a55be67230ad1949d57ab2c1a4b8 /gr-howto-write-a-block-cmake/docs/doxygen/doxyxml/generated/index.py | |
parent | 5c1576570e156633c9531932baa79fda9ff9a573 (diff) | |
parent | f536b394f20ef88b426bf4bb6e9b69f6efb9847e (diff) | |
download | gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.tar.gz gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.tar.bz2 gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.zip |
Merge branch 'more_swigness_docs'
Diffstat (limited to 'gr-howto-write-a-block-cmake/docs/doxygen/doxyxml/generated/index.py')
-rw-r--r-- | gr-howto-write-a-block-cmake/docs/doxygen/doxyxml/generated/index.py | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/gr-howto-write-a-block-cmake/docs/doxygen/doxyxml/generated/index.py b/gr-howto-write-a-block-cmake/docs/doxygen/doxyxml/generated/index.py new file mode 100644 index 000000000..7a70e14a1 --- /dev/null +++ b/gr-howto-write-a-block-cmake/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 + |