Book a Demo

Author Topic: create C++ namespace with code generation  (Read 5061 times)

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
create C++ namespace with code generation
« on: May 04, 2004, 02:14:47 am »
A "Hi" to all EA-Users out in the world,

today I tried to create a class in a namespace and generate code out of it. It doesn't work. My created C++ class was not in a namespace.  :(

Then I tried to reverse engineer a class in a namespace so that I can see in which way namespaces will be represented in EA, and this was also not working.  >:(

I thought that it is possible to create some packages in EA, and on C++ code gereration this package structure will be used as namespace structure.

Is there a trick to create a class in a special namespace with EA?  ???

bye
Andreas
« Last Edit: May 04, 2004, 02:18:38 am by glaubitz »
bye
Andreas

wombat

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: create C++ namespace with code generation
« Reply #1 on: May 06, 2004, 04:49:01 am »
Hi I'm a EA newbie - so just consider this as a wild suggestion :)
I haven't tried it myself but you might want to try playing around with the code generation template - to give you an idear - the default template for C# generator generate code like this:
class abc {
 public f() {
 }
}

i can change the template to genertat code like this:
class abc
{
 public f()
 {
 }
}

there are a number of variables that you can use  -


Hope i'm not sending you on a wild goose chase :)

Happy EA'ing

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: create C++ namespace with code generation
« Reply #2 on: May 06, 2004, 06:18:20 am »
Hi wombat,

Since I'm not very adept in modifiying code-templates I hoped there is a predefined way to create C++ namespaces ;D

Aditional to that I can't find a code-template which is competent for creating packages or namespaces.  ???

bye
Andreas
bye
Andreas

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: create C++ namespace with code generation
« Reply #3 on: May 10, 2004, 12:25:06 am »
Hi EA users,

sorry for bugging you, there is an option "create namespaces".

That was unchecked in my case. Now it works.  ::)
bye
Andreas