Author Topic: Synchronize with code: Typedefs outside class?  (Read 391 times)


  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Synchronize with code: Typedefs outside class?
« on: September 15, 2011, 06:50:22 pm »
EA 906

In many header files, I have both the class declaration and additional typedefs related to that class outside the class {} body.

These typedefs are often easier-to-read versions of template classes, and essential for EA to recognize class relations.


Instead of having a member
Code: [Select]
CGlib_AbstractGraphicsEventHandler<CGlib_GraphicsValueScaleWidget> m_EventHandler;
I use a typedef:
Code: [Select]
typedef CGlib_AbstractGraphicsEventHandler<CGlib_GraphicsValueScaleWidget> CGlib_ValueScaleWidgetEventHandler;

and can write my member in the more readable form:

Code: [Select]
CGlib_ValueScaleWidgetEventHandler m_EventHandler;
Without the typedef, EA does not recognize that m_EventHandler is related to CGlib_AbstractGraphicsEventHandler.

How can I tell EA to interpret such typedefs outside the class body (but in the same header file) when synchronizing the class?