Book a Demo

Author Topic: C++ CodeGen - "internal" typedefs generated wrong?  (Read 3038 times)

austin_hastings

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
C++ CodeGen - "internal" typedefs generated wrong?
« on: August 25, 2010, 09:34:02 am »
Howdy,

Based on what I saw the import-code operation do, I tried to reproduce it using a blank project.

I created two packages, with diagrams

Root
+ local (package)
--- Diagram
--- Atom
+ boost (package)
--- Diagram
--- uint32_t

I marked boost::uint32_t as a <<dataType>>, and marked Atom as a <<typedef>>, with (Ctrl+I) Parent= boost::uint32_t

According to TFM, a parent that is not part of the same diagram will appear in the top right corner of the child class.

BUG? In fact, in this scenario the parent did not appear in the corner.
 
I created some other local types, giving them <<typedef>> stereotypes and assigning parent values like "std::size_t" that are not part of the project at all.
 
Those parents did appear in the top-right corner of their children.
 
When I triggered the code generation, with all the packages and classes marked as Language=C++, the local classes whose parents are NOT defined in the project (like "std::size_t", etc) were generated correctly:
Code: [Select]
typedef std::size_t Size;
BUG? Sadly, the class (Atom) whose parent is in the project but located in a different package (boost::uint32_t) does not generate anything at all. The .h file contains the "class comment" because I have that configured on, but there is no typedef, no classname, no parent, nothing.

Any suggestions on how I can make this work?