Book a Demo

Author Topic: C++ Namespace Modelling  (Read 3886 times)

gkeller

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
C++ Namespace Modelling
« on: March 28, 2012, 05:54:20 am »
Hello,

How can i model C++ Namespaces?

Inside the documentation EA say that Packages are the UML Methodology to Model Namespaces and claim that it is possible at least with Java. Now, when i create Packages and generate C++ Code there are no namespaces!

Did i miss something? Is it possible to Model / Generate C++ Namespaces? If it is not possible in general - is there a workaround?

I like to use namespaces to create a clean structure.

regards,
Gerd

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: C++ Namespace Modelling
« Reply #1 on: March 28, 2012, 06:30:20 pm »
You should set the 'GenerateNamespace' option under Tools->Options->SourceCodeEngineering->C++ to 'true'.

HTH
Günther

gkeller

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: C++ Namespace Modelling
« Reply #2 on: March 30, 2012, 05:56:41 am »
Yes, that was it!

thanks Günther