Book a Demo

Author Topic: Displaying template associations  (Read 2104 times)

multiben

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Displaying template associations
« on: November 07, 2011, 10:50:23 am »
Hi there,
If I have classes like:

class B {
...
};

class A {
public:
 MyList<B> listOfBs;
};

When I generate a diagram from the source files, EA does not show an association from class A to B. I have to put it in manually. Is there any way I can have this done automatically?

Cheers,
BJW

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Displaying template associations
« Reply #1 on: November 08, 2011, 08:29:40 am »
Depends on what version you're using.

Version 8 and below will not do it.

Version 9 and above give you options for how it is imported. If MyList has been added to the list of collection classes on the appropriate options page, then an association will be created. Otherwise an association will be created to MyList with a binding of B.