Example #1
0
def readHeader(header):
    file = open(header, "r")
    parsed_line = {}
    find_class = False

    for line in file.readlines():

        class_name = getClassName(line)
        if class_name:
            main_class = Class(header, class_name)
            find_class = True

        dic_method = parseLine(line)
        if dic_method and find_class:
            main_class.additem(Method(dic_method, main_class.name))

    if find_class:
        print("*" + "-" * 50 + "*")
        main_class.display()

    file.close()