Book a Demo

Author Topic: Importing C++ with inline methods  (Read 5681 times)

jlucca

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Importing C++ with inline methods
« on: March 22, 2002, 02:29:11 pm »
I imported a C++ .h file into EA class diagram. The class had the constructor and a few other methods implemented inline.

After import, EA created a class diagram with only an empty default constructor. No other methods or attributes were imported.

To retrace my steps:

1. Created a C++ header file with the following class details:

class JLObject
{

public:
 JLObject() { ++mCount; }
 virtual ~JLObject() { --mCount; }
     virtual bool SaveToFile(ofstream& Dest) =0;
     virtual bool LoadFromFile(ifstream& Src) =0;
     virtual bool GetAsString(char* Dest) =0;
     virtual bool SetFromString(char* Src) =0;
 static int GetCount() { return mCount; }

protected:
     static int mCount;
};
int JLObject::mCount = 0;


2. Created a class (logical) diagram in EA and imported the above file.

3. The resulting class diagram is blank.

Anything I did wrong?

Thanks in advance,
JLucca

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Importing C++ with inline methods
« Reply #1 on: March 23, 2002, 02:09:36 am »
Hi,

I checked out your code and there was indeed a problem - which I have fixed. This will be included in the next update (build 477 or higher) - due out in a couple of days.

Thanks for the example and reporting the problem,
Geoff Sparks



jlucca

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Importing C++ with inline methods
« Reply #2 on: March 24, 2002, 11:40:17 am »

Glad I could help. Thanks for being so prompt!  :)