cpp2xmi

Goals

Parsing

With OCC-Core there is a C++-Parser.

There are two possibilities to do the parsing:

I decided to go the second way to make experience with the parser.

Experience

The used Version of Opencxx/occ-core has the following problems:

The opencxx - idea is to translate c++-source to c++-source, and do things. For round-trip-engineering like IBM/Rational Rose does, this ideas suite together. But in this state, my cpp2xmi is far away form that.

Open questions

How to map the C++-Constructs pointer and typedef ?
The typedef is currently mapped to a class with a Stereotype typedef.
How to find types (buildin and self defined) ?
In the UML standard (2.0/2.1) there is no API defined how to search an named element in a namespace. (May be I'm wrong ?)
Currently, nothing is done.

Download


Rudolf Weber Informatik- und Netzwerkverein Ravensburg e.V