Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - eta

Pages: [1]
1
Suggestions and Requests / Re: c++ reverse engineering, CArray
« on: June 07, 2006, 11:04:25 pm »
Quote
typedef only defines, what type of elements will be stored.

I dont understand what you mean :-[. Do you mean that my typedef just defines that the CArray will store CTestProtocol*? In that case there would be a relation for EA to detect.

When the typedef does not work, should this work then?
defining a class derived from CArray<CTestProtocol*,CTestProtocol*> ?
Code: [Select]
#include <afxtempl.h>

class CTestProtocol
{
public:

CTestProtocol();

virtual ~CTestProtocol();

};

class CProtocolArray : public CArray<CTestProtocol*,CTestProtocol*>
{
   ;
};

class AFX_EXT_CLASS CProtocolHandler  
{
public:

CProtocolHandler();

virtual ~CProtocolHandler();

protected:
CProtocolArray m_aProtocol;
};


Because this also doesn't put a link between CProtocolArray and CTestProtocol

2
Suggestions and Requests / Re: c++ reverse engineering, CArray
« on: June 07, 2006, 12:02:23 am »
Quote
What version of EA are you using?  I just tested this with build 791 and it imported the typedef.


I does import the typedef in this new release.
But it does not make a association between the:
CProtocolArray (typedef CArray<CTestProtocol*,CTestProtocol*>) and the CTestProtocol class.

http://www.cyberpoint.nl/~ehart/IHC/EA_CARRAY.PNG


Based on this code:
Code: [Select]

#include <afxtempl.h>

class CTestProtocol
{
public:

CTestProtocol();

virtual ~CTestProtocol();

};

typedef CArray<CTestProtocol*,CTestProtocol*> CProtocolArray;

class AFX_EXT_CLASS CProtocolHandler  
{
public:

CProtocolHandler();

virtual ~CProtocolHandler();

protected:

CProtocolArray

m_aProtocol;
};

3
Suggestions and Requests / Re: c++ reverse engineering, CArray
« on: June 06, 2006, 11:37:14 pm »
I am using 790.
Maybe they fixed it last week?  ;D
I will install the update and check it now

4
Suggestions and Requests / Re: c++ reverse engineering, CArray
« on: June 06, 2006, 04:21:11 am »
I have the same problem.
We are heavily making use of templates, but when using EA Corp. Edition these references are skipped.

Work arround for this:
typedef CArray<Test*,Test*> CTestArray;

Could be:
class CTestArray : public CArray<Test*,Test*>
{
     Test** m_pDummy;
}

Now Enterprise Architect will now the class used in the template.
But this is a crappy solution and i have to bloat all our sources with these wrapper classes.

It would be great if there is a way to get EA to understand this:
typedef CArray<Test*,Test*> CTestArray;

Maybe EA should make use of the preprocessor output of the compiler?
(We are using VS6.0)

Thanx

Pages: [1]