def __init__(self, xml): def getSections(file, predicate=None): return [ DoxygenSection(sd, self) for sd in filter( predicate, getDirectDescendants(xml, "sectiondef")) ] def isUserDefined(section): return section.attributes["kind"].value == "user-defined" self.id = xml.attributes["id"].value self.name = getNodeText(xml.getElementsByTagName("compoundname")[0]) self.brief = convertLine(getDirectDescendant(xml, "briefdescription"), self) self.detailed = convertLine( getDirectDescendant(xml, "detaileddescription"), self) # call base class constructor WikiPage.__init__(self, self.getPageName()) self.user_sections = getSections(xml, isUserDefined) self.generated_sections = getSections(xml, lambda x: not isUserDefined(x)) # register class page doxygen.addLink(self.id, self.getPageName())
def __init__(self, xml, template): def getSections(file, predicate=None): return [DoxygenSection(sd, self) for sd in filter(predicate, getDirectDescendants(xml, "sectiondef"))] def isUserDefined(section): return section.attributes["kind"].value == "user-defined" self.id = xml.attributes["id"].value self.parent = None self.template = template self.name = getNodeText(xml.getElementsByTagName("compoundname")[0]) self.title = getNodeText(getDirectDescendant(xml, "title")) self.brief = convertLine(getDirectDescendant(xml, "briefdescription"), self) self.detailed = convertLine(getDirectDescendant(xml, "detaileddescription"), self) # call base class constructor WikiPage.__init__(self, self.getPageName()) self.usersections = getSections(xml, isUserDefined) self.generatedsections = getSections(xml, lambda x: not isUserDefined(x)) programlistings = xml.getElementsByTagName("programlisting"); if len(programlistings) > 0: self.programlisting = ProgramListing(programlistings[0], self)
def __init__(self, xml, template): def getSections(file, predicate=None): return [ DoxygenSection(sd, self) for sd in filter( predicate, getDirectDescendants(xml, "sectiondef")) ] def isUserDefined(section): return section.attributes["kind"].value == "user-defined" self.id = xml.attributes["id"].value self.parent = None self.template = template self.name = getNodeText(xml.getElementsByTagName("compoundname")[0]) self.title = getNodeText(getDirectDescendant(xml, "title")) self.brief = convertLine(getDirectDescendant(xml, "briefdescription"), self) self.detailed = convertLine( getDirectDescendant(xml, "detaileddescription"), self) # call base class constructor WikiPage.__init__(self, self.getPageName()) self.usersections = getSections(xml, isUserDefined) self.generatedsections = getSections(xml, lambda x: not isUserDefined(x)) programlistings = xml.getElementsByTagName("programlisting") if len(programlistings) > 0: self.programlisting = ProgramListing(programlistings[0], self)
def __init__(self, xml): def getSections(file, predicate=None): return [DoxygenSection(sd, self) for sd in filter(predicate, getDirectDescendants(xml, "sectiondef"))] def isUserDefined(section): return section.attributes["kind"].value == "user-defined" self.id = xml.attributes["id"].value self.name = getNodeText(xml.getElementsByTagName("compoundname")[0]) self.brief = convertLine(getDirectDescendant(xml, "briefdescription"), self) self.detailed = convertLine(getDirectDescendant(xml, "detaileddescription"), self) # call base class constructor WikiPage.__init__(self, self.getPageName()) self.user_sections = getSections(xml, isUserDefined) self.generated_sections = getSections(xml, lambda x: not isUserDefined(x)) # register class page doxygen.addLink(self.id, self.getPageName())