Book a Demo

Author Topic: Class instantiation in C++ Code generation  (Read 2817 times)

Hami

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Class instantiation in C++ Code generation
« on: August 21, 2014, 12:37:25 am »
Hi,

I am new to Enterprise Architect and I am currently having hard time figuring out how to generate code for class instances (objects I would guess). Is it possible at all?
Up to now, I have been able to manage class definitions and state-machine code generations. It works fine! However, I could not find any straight-forward documentation on generating class instance and on
how to manage links between these.


In the past, I worked with IBM Rhapsody and this was achieved by
creating object (class instances) and links (association instances) on
object diagrams. In EA, the philosophy is a bit different?

Any help or link this would be greatly appreciated.


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Class instantiation in C++ Code generation
« Reply #1 on: August 21, 2014, 09:09:31 am »
There's no generation from objects in Enterprise Architect. What are you expecting to generate?

Hami

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Class instantiation in C++ Code generation
« Reply #2 on: August 21, 2014, 09:28:41 am »
ok,

What I was trying to do was as follow:

Assuming I've created a definitions for classes apple and tree in a class diagram, I was searching for a way to code generate from the model:
   apple this_apple;
   tree this_tree;
   this_apple->assign_to_holder_role(this_tree);