Book a Demo

Author Topic: Code template Framework and Code Import  (Read 2711 times)

petermantell

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Code template Framework and Code Import
« on: February 12, 2004, 03:23:13 am »
I have some C++ classes in a dll that I need to import into EA.

Because the classes are in a dll, I'm using this

#ifdef APIEXPORT
#define EXPORTAPI __declspec(dllexport)
#else
#define EXPORTAPI __declspec(dllimport)
#endif

to declare them as imports / exports, so the first line of a class looks like this:

class EXPORTAPI MyClass : public AnotherClass

Is it possible to modify the Code Templates so that this EXPORTAPI keyword is recognised during code import and the resulting classes are given a particular corresponding stereotype?

Thanks,,

Pete

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Code template Framework and Code Import
« Reply #1 on: February 15, 2004, 05:19:27 pm »
Hi Pete,

No, this is not currently possible- though I can understand how this may be useful.

A general note: modification of the Code Templates is for purposes of tailoring the generated code. These modifications will not in general, affect the way in which code is imported into the model.

Regards,
Ben