Book a Demo

Author Topic: Does EA generate code for ports?  (Read 4144 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
Does EA generate code for ports?
« on: March 01, 2019, 06:35:52 pm »
I inserted a class in a diagram and created a port and attached it to the class. I then added a required Interface to that port. All elements named Class3, Port2, and Interface1 have the language set to C++. In the end however, all I get is this:
Code: [Select]
class Class3
{

public:
Class3();
virtual ~Class3();

};


class Interface1
{

public:
Interface1() {

}

virtual ~Interface1() {

}

};


Code for the port Port2 is not generated. I know that in other tools, a port will translate to an embedded class. EA architect seems to not support port code generation. Am I missing something else, say perhaps another setting?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Does EA generate code for ports?
« Reply #1 on: March 02, 2019, 05:45:44 am »
In EA nested classes get translated to nested classes.
I don't think ports are used at all in code generation.

Geert

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 344
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: Does EA generate code for ports?
« Reply #2 on: March 07, 2019, 09:01:24 am »
In EA nested classes get translated to nested classes.
I don't think ports are used at all in code generation.

Geert
I think the same, so, what do you expect the ports to be transformed into?

shiba28

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Does EA generate code for ports?
« Reply #3 on: May 02, 2019, 01:44:12 am »
Hi,
I believe that EA's code template framework didn't directly support generation of ports and parts. However, this functionality was intended to be added to the code template framework. someone from the support team can confirm that.   



dafont192.168.1.1filehippo
« Last Edit: May 03, 2019, 04:55:48 am by shiba28 »