[Uml-devel] fun with code
Andrew Sutton
ansutton at kent.edu
Wed Feb 19 12:39:17 UTC 2003
i just checked in the initial draft of the code generator because i have to go
run some errands. tons of coffee and a little free time == much work.
so far it's pretty suave. feed it one of the "tweaked" XMI files in mmgen/xmi
and it'll generate a directory hiearchy with a header file in each. the
header file declares a namespace, imports all the types from imported
namespaces using the "using" keyword, and forward declares all the classes
for the package (namespace). i haven't generated the include dependencies
yet. soon.
so, if anybody wants to know exactly how many classes there are in UML, open
mmgen/xmi/uml-1.4.xmi (code is automatically generated when the document is
opened) and then look for the file UML1.4/UML/UML.h. there's a couple of
classes.
oh that reminds me. i've been clever. i use the <XMI.model> tag in the XMI
file to get the actual model name and version. Those two combined form the
root of the metamodel implementation directory. versioning support built in.
enjoy :)
andy
More information about the umbrello-devel
mailing list