Book a Demo

Author Topic: Class using STL containers modelling  (Read 2937 times)

J.B.

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Class using STL containers modelling
« on: January 24, 2008, 07:01:24 pm »
Hi,
I am having trouble to create a class diagram that can generate the following similar code:

class CMyClass : list<string>
{
public:

CMyClass();

virtual ~CMyClass();


vector<string> m_MyTable;
};

Any help would be very much appreciated.
Thanks!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Class using STL containers modelling
« Reply #1 on: January 24, 2008, 08:07:01 pm »
Reverse engineering the exact code is usually a good place to start...

See what EA does with it (on the way in, so to speak).

Then forward engineer what EA just created and see what comes out...

That should give you the "envelope" you need to play with...

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!