Dependencies to external header files

3434 Betrachtungen
Seite: 1
Michael
Michael's avatar
Community Member
6 Beiträge

Dependencies to external header files

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

Walter
avatar
Moderator
29 Beiträge

Re: Dependencies to external header files

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

Michael
Michael's avatar
Community Member
6 Beiträge

Re: Dependencies to external header files

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

Seite: 1

Currently Online:

There is nobody online.

Welcome to our latest member: lammils