How can I automatically create Accessor and Mutator for Interfaces?
How can I automatically create Accessor and Mutator for Interfaces?
12.03.2009 14:06
Hello guys,
I have the problem that I want to get or set attributes of a class which is realized by an interface. At the moment I must write all accessor and mutator by hand. What shall I do that Rhapsody do the work for me?
Thanks for help.
Greetz,
ph2nd
Re: How can I automatically create Accessor and Mutator for Interfaces?
12.03.2009 17:02
There are properties for an attribute that control the automatic generation of get and set operators. C_CG:Attribute:Accessorgenerate (TRUE) and C_CG:Attribute:Mutatorgenerate (Always or Smart). You can set this attribute at Class level to et it for all attributes in the class or package or model level to enlarge the scope. This should also work for interfaces. In Rhapsody in C, attributes are not "copied" in the subclass when it inherits from a superclass/Interface BTW.
Walter
PS
When you wrote "right", i assumed you meant "write".
W.

