Book a Demo

Author Topic: how do I add constant member functions in a class?  (Read 4222 times)

m4l490n

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
how do I add constant member functions in a class?
« on: March 08, 2013, 01:05:41 pm »
Hello

I can't make enterprise architect to generate the corresponding code to a constant member function. I need the following function to be generated;

Code: [Select]
int getId() const;
And I can't find the proper configuration in the class's member function options to achieve this :(

How can I do this? Thank you!!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: how do I add constant member functions in a cl
« Reply #1 on: March 08, 2013, 01:50:13 pm »
Have you tried reverse-engineering your code to see how EA handles it? When I do it, EA sets the "Is Query" modifier on the Advanced page of the operation properties.
The Sparx Team
[email protected]

m4l490n

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: how do I add constant member functions in a cl
« Reply #2 on: March 09, 2013, 12:51:02 am »
Quote
Have you tried reverse-engineering your code to see how EA handles it? When I do it, EA sets the "Is Query" modifier on the Advanced page of the operation properties.

That's it :D "Is Query" Is the configuration needed. Thanks a lot!!