Book a Demo

Author Topic: Is there a diagram to gen. procedural c++ main()?  (Read 2939 times)

smartjoe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Is there a diagram to gen. procedural c++ main()?
« on: January 13, 2011, 12:33:48 pm »
Hi,

I understand that Object Oriented is a more recent paradigm than Procedural, but even so, does sparxEA have a diagram which can represent a text-book c++ "hello world" main() function? Not just represent it but also generate the h/cpp files?

I'd assume that class diagrams are not going to do it, but given that Im constantly surprised by the many things that CASE tools can do, Im actually hoping for another "doh" moment...

Thanks.
« Last Edit: January 13, 2011, 12:37:00 pm by smartjoe »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Is there a diagram to gen. procedural c++ main
« Reply #1 on: January 13, 2011, 06:54:57 pm »
AFAIK  code generation from behavioral diagram is still very limited (only State Diagrams I think)

Geert

smartjoe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Is there a diagram to gen. procedural c++ main
« Reply #2 on: January 15, 2011, 01:29:20 pm »
Agreed, the code generation isn't as good as asking a person to code it, but I was impressed when a working exe was generated straight from a class & sequence diagram, with the exception of Main().

A trick for making an exe with the entry point inside a class, or sparxEA making "Procedural Function/Procedural Attribute" diagram-elements, for class & sequence diagrams, would make my day.

Or a sequence diagram which could be marked as "procedural", but only if it's language was set to c++.

« Last Edit: January 15, 2011, 01:59:44 pm by smartjoe »