Book a Demo

Author Topic: How do I add a namespace to be generated in c++?  (Read 3229 times)

m4l490n

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How do I add a namespace to be generated in c++?
« on: March 09, 2013, 01:39:34 am »
Hi

I can't find the proper configuration that I have to set in a class diagram in order to have a;

Code: [Select]
namespace mynamespace
{
}

generated in C++. What do I have to do to accomplish this?

Thank you!!

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: How do I add a namespace to be generated in c+
« Reply #1 on: March 10, 2013, 03:33:02 am »
Did you try reverse engineering? It will show you that namespaces appear as packages in the model, and so will packages be generated as namespaces in code.

HTH
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: How do I add a namespace to be generated in c+
« Reply #2 on: March 11, 2013, 08:44:01 am »
From the Main menu, Tools | Options, then set Generate Namespaces to true in the C++ group.

HTH,
--
t-kouno