It is currently Tue Feb 07, 2012 8:58 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 [ 3 posts ] 
Author Message
 Post subject: Generating File Headers
PostPosted: Tue Jun 15, 2010 12:52 pm 

Joined: Tue Nov 25, 2008 1:21 pm
Posts: 4
Hi, i am currently developing a small Project in Rhapsody developer edition in C. I want to generate comment headers over each file which is modelled looking like this:

/* SOURCE FILE $CodeGeneratedFileName

**************************************************************************
*  PROJECT       <Project Name>
*  MODULE        <Module>
*  RESPONSIBLE   <Name>
**************************************************************************

**************************************************************************
*  PURPOSE:
*   <Purpose>
*   
*
**************************************************************************
*  REMARKS:
*   <Remarks>
*
**************************************************************************


I can generate this over Properties->C_CG->File->SpecificationHeader/ImplementationHeader. My problem now is:
Everytime the file is regenerated because i added a function i.e. all changes i made to the Purpose or Remarks section are overwritten and empty again. Can i define somewhere that certain lines aren`t touched when i regenerate the files?


Offline
 Profile  
 
 Post subject: Re: Generating File Headers
PostPosted: Wed Jun 16, 2010 5:53 am 

Joined: Tue Jun 24, 2008 6:18 pm
Posts: 141
Location: Ankara
Why don't you use the SpecificationPROLOG instead ? It is for inserting code (and any comment) at the beginning of the file.


Offline
 Profile  
 
 Post subject: Re: Generating File Headers
PostPosted: Wed Jun 16, 2010 8:12 am 

Joined: Tue Nov 25, 2008 1:21 pm
Posts: 4
The same problem there.
I`ll make a short exmaple of my problem so it`s easier to understand:

I got this as my file header:

/**************************************************************************
*  PURPOSE:
*   <Purpose>
*   
*
**************************************************************************


Now i fill out the purpose for example:

/**************************************************************************
*  PURPOSE:
*   This file is for testing file headers
*   
*
**************************************************************************


Now i add a function an the file is regenerated and the things i filled in the purpose section are gone looking like this again:

/**************************************************************************
*  PURPOSE:
*   <Purpose>
*   
*
**************************************************************************


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 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:

cron

suspicion-preferred