Dependencies to external header files
Dependencies to external header files
12.11.2008 16:54
Is there an easy way to draw the dependencies (<<Usage>>) of a class/package to an external header file?
I know how to use C_CG:Class:ImpIncludes/SpecIncludes to specifiy include files but this information is somehow "hidden". It would be nicer to have a diagram for that.
Where do I have to add the external files? Into the component?
Regards,
Michael
Re: Dependencies to external header files
16.11.2008 15:11
Hi Michael
There is a better way to do that. Not simpler, but much more elegant.
Use the "Use as External" property in Class and Package to create an external package like in the picture (We have an "External" stereotype that sets both properties)
Then you can use the files to drag them onto OMD's and put dependencies with the "Usage" stereotype to create includes. Like here.
Hope this will help you!
gretings
Walter
Re: Dependencies to external header files
19.11.2008 08:41
Hi Walter,
Nice to hear from you and thanks for the reply.
Is it important to model the external header files as a class or can I use the "file" element as well? I also thought of using ReverseEngineering to add the header files to the model. Is this a practical way? Would you then put all external files in just one (ReverseEngineered) package?
I just would like to know some best practices (if there are some available).
Best regards,
Michael

