Author Topic: C++ generation from sequence diagram  (Read 190 times)

Cyrille

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
C++ generation from sequence diagram
« on: January 11, 2017, 08:50:02 pm »
Hi,

I am trying to generate C++ code from EA, and encounter some difficulties.
In a Class 1 I have a short sequence diagram starting by a new of a class 2, the result is assigned to a member variable of class 1.
The generated code look like this:
void Class1::diag2(Boolean a_ret_status)
{
   Class2* m_class2 = new Class2();
...
}
Which is not what I wanted, I was expecting:
m_class2 = new Class2();
as m_class2 is a member of class1.

Furthermore if I add an argument to the constructor Class2... it does not appear in the generated version.

Any clues ?

thanks in advance,
Cyrille