Book a Demo

Author Topic: stereotype <<type>> help  (Read 4047 times)

flyingrobots

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
stereotype <<type>> help
« on: September 13, 2002, 08:58:52 am »
This is probably a very trival question...

But how do you define a type in a class that you've stereotyped as <<type>>?

Do you make the name of the type and its definition a member?  Or is there some other accept way?  :-/

Thanks
Kevin

flyingrobots

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: stereotype <<type>> help
« Reply #1 on: September 13, 2002, 10:24:03 am »
Let me expand on this a bit.

The problem is when it is stereotyped as <<type>>, the code generation continues to generate a class and not a typdef.

So if I want to make a typedef like the following:

typedef std::vector<int> IntArray

I don't know how to do this  :P

Thanks
Kevin

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: stereotype <<type>> help
« Reply #2 on: September 23, 2002, 01:00:16 am »
To the best of my knowledge, you can't make EA generate or reverse engineer typedefs in your code. It is something, I would like to have also. It can generate struct types (from classes of stereotype <<struct>>), but with some strange side-effects - see my other posts on this matter.

What you can do, is to make EA aware of your types by adding them in the "Programming Language Datatypes" dialog, which is accessible through the menu "Reference", "Language Datatypes". Then you'll be able to choose from your own types when adding attributes to classes.

I hope this was helpful.