It is currently Tue Feb 07, 2012 7:47 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Generation: Replacing keywords with internal Rhapsody info
PostPosted: Fri Apr 03, 2009 1:00 pm 

Joined: Fri Apr 03, 2009 12:39 pm
Posts: 1
Hello,

I am trying to generate a code with Rhapsody for C, which will log additional information during runtime - such as module name, component name, function name, etc.

For this purpose I want to use the generation of Rhapsody to place the strings in the code.

For example: Code in Rhapsody before generation:

  {
     ......
     prj_show_me_where($ModuleName, $ComponentName);
     .....
  }


And then after the generation I would like to have the following:

  void prj_my_vodoo(void)
  {
     ......
     prj_show_me_where("prj_MyCurrentModuleName", "prj_MyCurrentFunctionName");
     .....
  }


I know that I can do some parts of it with the preprocessor directives: __FILE__ and __LINE__. But I want to extract some additional information from Rhapsody as component names, actions, etc.

I will be happy if you share with me some ideas for solving this problem!


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Apr 03, 2009 2:31 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Are you aware of standard operations? If not then check them out in the 'help'.

It's possible that you can use them in conjunction with stereotypes to achieve what you want.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred