Book a Demo

Author Topic: c++ generation, pointers and ref  (Read 2034 times)

Ezzat

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
c++ generation, pointers and ref
« on: February 17, 2011, 03:49:34 am »
Hi all,

I have began to test EA8 pro edition using trial license.
My project is written in c++ and i wonder how to modelise parameters passed by pointers or references.

For classe attribute using associations or "containment = by reference", the attribute is well MyAttribute * _myAttribute.
But i do not find how to do the same this with method parameters. I use often const & to represent the "in qualifier", so checking "Fixed" checkbox works well to generate the const, but atm i have to write the & manually at the end of parameter Type and add custom code generation templates to allow generator to uderstand & and *.

To sum up, i dont find the way to generate function like :
void myFunction(const AnyClass & classRef, AnotherClass * classPtr)

Have i missed anything ?

Regards,
Ezzat