Source Code Documentation Templates

Languages  

C C++ Delphi Java HTML Makefile Perl Shell SQL

Introduction  

Generic File Header  

Standard Web Based Description
Web CM File Header CM File Header

This header is designed to be placed at the head of each physical files and contains a selection of SCCS keywords together with organisational information (Project etc). These inform you of the files status, ownership and version number.

This particular example has C style of comments which you can change to the language specific commenting convention.

C  

Web-based UML Traditional Example Description
C Module C Module C Module C Module C module header. The traditional is based on the Unix man(2,3) format
C Function C Function C Function C Function Description placed at the head of each function within a C module

C++  

Web-based UML Traditional Example Description
Class Definition (.h) Class Definition (.h) Class Definition (.h) Class Definition (.h) Description of class definition
Class Implementation (.cpp/.C/.CC/.c++) Class Implementation (.cpp/.C/.CC/.c++) Class Implementation (.cpp/.C/.CC/.c++) Class Implementation (.cpp/.C/.CC/.c++) Description of the class implementation

Delphi  

File Type Description
None as yet working

Java  

Template Examples Description
Java Class File Example This is the documentation template for a Java class file. It can also be used for an inner classes.
Java Method Example Java Method documentation templates
Java Field Example Data fields in a class

HTML  

Object Description
HTML Header Standard HTML Document header including all the relevant META keywords.
HTML Footer Standard HTML Document footer including a selection of status keywords.

Makefile  

Makefile Example Description
Makefile Example Makefile template. This includes the CM header too and has a nice (IMHO) example.

Perl  

Type Description
Perl UML Package/Class This shows you how to write documentation using UML and is intended for OO Perl 5.
Perl UML Operation UML header for a perl function.

Shell  

Shell Programming Description
Shell Program  Derived from the Rabbit book (you know that I mean), a good general purpose header for shell programs.
Shell Function For those who like to write shell libraries of functions, a function header

SQL  

Databases Description
SQL Script Files  Much as above but with sql type comments

Author: Graeme Burnett  
Final
  Last Updated :