You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdesdk/umbrello/umbrello/codeimport/kdevcppparser
tpearson 3c5092f65b
Updated obsolete GPL license addresses to current GPL address
15 years ago
..
Makefile.am Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
README Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
ast.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
ast.h Updated obsolete GPL license addresses to current GPL address 15 years ago
ast_utils.cpp Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
ast_utils.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
cpptree2uml.cpp Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
cpptree2uml.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
driver.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
driver.h Updated obsolete GPL license addresses to current GPL address 15 years ago
errors.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
errors.h Updated obsolete GPL license addresses to current GPL address 15 years ago
keywords.lut.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
lexer.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
lexer.h Updated obsolete GPL license addresses to current GPL address 15 years ago
lookup.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
lookup.h Updated obsolete GPL license addresses to current GPL address 15 years ago
parser.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
parser.h Updated obsolete GPL license addresses to current GPL address 15 years ago
tree_parser.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
tree_parser.h Updated obsolete GPL license addresses to current GPL address 15 years ago
urlutil.cpp Updated obsolete GPL license addresses to current GPL address 15 years ago
urlutil.h Updated obsolete GPL license addresses to current GPL address 15 years ago

README

This directory contains the C++ parser from Kdevelop-3.0.

Following files are copies from the directory kdevelop/lib/cppparser:
 ast.{h,cpp} driver.{h,cpp} errors.{h,cpp} keywords.lut.h lexer.{h,cpp}
 lookup.{h,cpp} parser.{h,cpp} tree_parser.{h,cpp}

Following files are copies from the directory kdevelop/languages/cpp:
 ast_utils.{h,cpp}

Following files are copies from the directory kdevelop/lib/util:
 urlutil.{h,cpp}

The source files cpptree2uml.{h,cpp} are based on kdevelop/languages/cpp/
store_walker.{h,cpp}.  The class CppTree2Uml inherits from class TreeParser
and overrides certain methods from that class.

CppTree2Uml visits the nodes of the abstract syntax tree constructed by the
CppParser, and constructs UML objects on the way.

The import_utils.h (in the parent directory) is the interface between the
CppTree2Uml and Umbrello.
import_utils implements the construction of the UML objects.  CppTree2Uml calls
the create/insert methods in the import_utils while traversing the syntax
tree.

The one and only method that Umbrello uses for accessing the C++ parser,
and any other parser for that matter, is ClassImport::importFiles().
The class CppImport (in the parent directory) implements that operation.
Thus we have these classes:

                +-------------------+
                |   <<interface>>   |
                |   ClassImport     |
                +===================+
Umbrello ------>| importFiles() = 0 |
                +-------------------+
                          A
                          | <<realize>>
                          |
                +-------------------+               +-------------------+
                |    CppImport      |               |    CppTree2Uml    |
                +===================+  <<invoke>>   +===================+
                | importFiles()     |-------------->|                   |
                +-------------------+               |                   |
                                                    +-------------------+
                                                             |
                +-------------------+                        |
                |   <<utility>>     |                        |
                |   Import_Utils    |                        |
                +===================+                        |
                | createUMLObject() |  <<invoke>>            |
                | insertMethod()    |<-----------------------+
                | insertAttribute() |
                +-------------------+
                        |
Umbrello <--------------+