Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Customize generated accessor functions
Topic Summary:
Created On: 2-Dec-2005 15:49
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 2-Dec-2005 15:49
User is offline View Users Profile Print this message


Hanspeter Scherr

Posts: 1
Joined: 5-Jul-2005

Hello,
I use Rhapsody in C and I have to implement a data structure with getter and setter functions. Everytime when the data is changed, a write operation to the EEPROM should be done. The idea is, to use the generated Accessor functions. Is there a way to customizing the generated Accessor functions?

Please excuse my bad english, I hope you understand my question.

Hanspeter
Report this to a Moderator Report this to a Moderator
 14-Dec-2005 08:44
User is offline View Users Profile Print this message


Bernhard Merkle

Posts: 18
Joined: 2-Jun-2005

Look under Properties and then
CG-->Attribute or
CG_C-->Attribute

there you find properties where you can modify the behaviour of the Rhapsody codegenerator.

HTH
kind regards,
Bernhard Merkle.
Report this to a Moderator Report this to a Moderator
 7-Aug-2006 14:33
User is offline View Users Profile Print this message


Ian Turner

Posts: 25
Joined: 3-Feb-2006

HI,

if you turn on the CG::CGGeneral::GeneratedCodeInBrowser option and regenerate your code, you can then see the default getter and setter functions. You can then modify them and they change to "user generated functions" that remain in the browser if you then turn off the GeneratedCodeInBrowser and regenerate your code.

Regards,

Ian
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.