Hi,
I am using the 30-day trial version of EA, and I set up an experiment with 2 c++ header files, class1.h and class2.h if you like. In class1, I added an operation that takes a reference parameter of type class2. I added an include statement in class1.h to include class2.h (this is just one way of keeping the compiler happy, a forward declaration of class2 in the class1.h file may also have been ok).
I then imported the source directory into a class model within my EA test project. Sure enough, it created the two classes, but the class diagram did not show any relationship between the two classes. Furthermore, when I generated new source from the model, the generated class1.h file failed to include the class2.h file.
I have tried everything obvious to establish that relationship diagrammaticaly in order to get the generated source code correct, but have failed. Nothing works.
The only thing I did find that worked, was to manually type in the include statement into the "Generate Code" dialog box that comes up when you select class1 on the class diagram and hit F11 (or select it from the context sensitive menu after a right mouse button click).
Surely, EA should know that class1 has a dependency upon class2? It is there in the parameters of an operation in class1. How can EA miss it? Why do I have to manually ensure that the generated source for class1 is correct? This problem has got quite a few other people in my office scratching their heads.
Any help would be appreciated. Thanks in advance.