Book a Demo

Author Topic: C++ array attributes  (Read 3748 times)

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
C++ array attributes
« on: August 29, 2002, 02:01:23 am »
What is the best way to define class attributes which should translate to arrays in the generated C++ code? I have tried reverse engineering some C++ code, and then generated the code (in a new file), but this generates

   char [ARRAY_SIZE] MyArray;

instead of

   char MyArray[ARRAY_SIZE];

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: C++ array attributes
« Reply #1 on: September 06, 2002, 07:18:55 am »
Just to expand a bit on my previous post:

I guess that this is probably just a bug (or missing feature;)), because noone has replied.

What about the "Multiplicity" settings for an attribute? As far as I can tell, they have no effect on C++ code generation. Why not use these to specify an array?

-
Mikkel