#!/usr/bin/python import monkDebug as debug import sys import monkTools as tools #import CppHeaderParser import re import codeBB import collections import monkModule as module import monkNode as node def display_doxygen_param(comment, input, output): data = '
' data2 += 'Return: ' data2 += ' | ' data2 += codeBB.transcode(dataReturn) data2 += ' |
\n'); file.write(globalWrite); file.write('\n'); file.write('
\n'); file.write(globalWrite); file.write('\n') file.write('
\n'); level = 0 parent.append({'access':'me', 'class':element.get_displayable_name()}) for parentElem in parent: access = "" if parentElem['access'] == 'public': access = "+" elif parentElem['access'] == 'protected': access = "#" elif parentElem['access'] == 'private': access = "-" tmpLen = level * 7 if tmpLen > 0: tmpLen -= 5 file.write(white_space(tmpLen)) if level != 0: file.write('+--> ') file.write(access) if parentElem['access'] == 'me': file.write(parentElem['class']) else: classPointer = module.get_element_with_name(parentElem['class']) if classPointer != None: link = classPointer.get_doc_website_page() link = node.get_doc_website_page_relative(currentPageSite, link) file.write('') file.write(parentElem['class']) if classPointer != None: file.write('') file.write('\n'); if len(listBase) != 0: # display all functions : file.write('
') level += 1 # all child not in application : for childElem in child: tmpLen = level * 7 if tmpLen > 0: tmpLen -= 5 file.write(white_space(tmpLen)) if level != 0: file.write('+--> ') classPointer = module.get_element_with_name(childElem) if classPointer != None: link = classPointer.get_doc_website_page() link = node.get_doc_website_page_relative(currentPageSite, link) file.write('') file.write(childElem) if classPointer != None: file.write('') file.write('
') file.write('
\n' allDetailDoc += write_methode(subElement, namespaceStack, link = False) lastDoc = parse_doxygen(subElement['node'].get_doc()) + '\n' if lastDoc != "": allDetailDoc += '\n' allDetailDoc += lastDoc allDetailDoc += '
' + enumElement['name'] + ' | ') nbCol += 1 if nbCol == nbColumn: nbCol = 0 file.write('
\n')
file.write(enumElement['name'] + white_space(elementSize-len(enumElement['name'])) + ' = ' + enumElement['value'] + '')
file.write('
\n')
if enumElement['doc'] != "":
file.write(parse_doxygen(enumElement['doc']));
if element.get_node_type() == 'union':
file.write("TODO : the page ...");
file.write(footer)
file.close();
def generate(myLutinDoc, outFolder) :
myDoc = myLutinDoc.get_base_doc_node()
tools.copy_file(tools.get_current_path(__file__)+"/theme/base.css", outFolder+"/base.css")
tools.copy_file(tools.get_current_path(__file__)+"/theme/menu.css", outFolder+"/menu.css")
# create common header
genericHeader = '\n'
genericHeader += '\n'
genericHeader += '\n'
genericHeader += ' \n'
genericHeader += '