CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Document Generator

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Andreas



Joined: 25 Oct 2004
Posts: 136

View user's profile Send private message

Document Generator
PostPosted: Thu Mar 19, 2009 1:36 am     Reply with quote

Hi there,

Can somebody point me to a manual for the document generator which is built into the CCS Compiler ??

I am trying to make a documentation, but cant find out how to insert project title, author and all this %...% Variables used throughout the document

best regards
Andreas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 19, 2009 12:53 pm     Reply with quote

See this thread for comments about the document generator:
http://www.ccsinfo.com/forum/viewtopic.php?t=36158
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Mar 19, 2009 7:23 pm     Reply with quote

Here is some info on how it is used. It has worked fine for me lately. Please note the last paragraph (bolded) that shows an example of how it is used. Also see the file titled "template_sdd.rtf" in the PICC directory for an example template..

The following tags are used to identify a group that should be repeated for every function in the program.
%FOR EACH FUNCTION% - Start tag
%END FOR% - End tag
Inside the above tags, the following refer to the individual functions:
%F:FUNCTION% - The function name
%F:DESCRIPTION% - Un-named comments associated with this function.

The following special markups are lists. If they appear inside a table, then the table rows are duplicated for each item in the
list. If they are outside a table then the items are listed one per line.
%S:SOURCEFILES% - This is a list of source files
%S:OUTPUTFILES% - This is a list of output files
%D:ID% - A list of #defines
%D:VALUE% - A list of #define values
%D:DESCRIPTION% - A list of #define comments
%T:ID% - A list of TYPEDEF's
%T:TYPE% - A list of TYPEDEF values
%T:DESCRIPTION% - A list of TYPEDEF comments
%G:ID% - A list of global variables
%G:TYPE% - A list of global variable types
%G:DESCRIPTION% - A list of global variable comments
%L:ID% - A list of local variables
%L:TYPE% - A list of local variables types
%L:DESCRIPTION% - A list of local variables comments

Any other string of the form %identifier% is considered as a user defined named comment. It is associated with the
corresponding comment in the source code.
Note: The named comment is case sensitive.

For example: In your source code, if you wish to place the following named comment:
//*AUTHOR John Doe.
In your template you will include the following markup:
%AUTHOR%
This markup will be replaced by text in your source code – “John Doe” in this case.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group