Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: timhawkins on February 01, 2003, 12:18:06 pm

Title: Problems with C++ Parser
Post by: timhawkins on February 01, 2003, 12:18:06 pm
I have a number of software packages that I am trying to import from source. The classes in the package have an "attribute" in the class name ie

//
// Part of object controlled by metaobject
//
class GOODS_DLL_EXPORT object_header {
 public:
  ......
};

where GOODS_DLL_EXPORT is defined as

#define GOODS_DLL_EXPORT __declspec(dllexport)

The problem is that EA is creating multiple classes of then name GOODS_DLL_EXPORT instead of the real name of the class, I bleive this is becuase it is using the first token after the "class" keyword as the class name. It should use the last token instead and assume that the previous tokens are attributes.

I have tried this in 3.51 and its still doing the same thing.

Title: Re: Problems with C++ Parser
Post by: Takeshi_KOUNO on February 02, 2003, 06:43:39 pm
Hello,

I think it's a better way to define GOODS_DLL_EXPORT as 'MACRO'.

you can use macro menu from 'reference'.

Takeshi KOUNO