Header Browser's Documentation : HeaderBrowser Comments
|
General form of comments
To show HeaderBrowser documentation informations, you have to write some comments in a particuliar form :
/*! * @type Name * @abstract Summarized documentation for this tag. * @discussion Full documentation for this tag. * @additional tag Value */As you see, HeaderBrowser comments begins by " /*! ", with an exclamation mark. For compatibility with JavaDoc, you also could use "/** ".There is some "tags", begining with an arobase. These tags indicates an HeaderBrowser API information. In a HeaderBrowser comment, the first tag is for the general API type (like function, class, typedef, ...).
There is three tags that you could use in most of general HeaderBrowser tags : So, you can create simple declarations: /*! @var foo_global Global variable */Or create multi-lines comments, with or without asterisks at the beginning of each lines: /*! * @function foo_function * Here is the discussion, written on 2 lines, * without the discussion tag. * @abstract The summary. @param No asterisk on this line; it's still good. @param Another fine-working example. */
Tags for all headers file
There is only one HeaderBrowser tag used for the whole header file. It is the
@header tag (or the @package , it's the same but you couldn't have the both in the same file); it must be at most one time in the file. This tag takes only one field, which is the name of the header file (or the general functionality name) :
/*! * @header foo.h * @abstract All foo functions. * @discussion This file contains all declarations for * foo manipulation. */You could write long discussion text, with example code. Inside an @header declaration, you could use other tags, to add more informations. These tags are : @version , @author , @see , and @link . Living aside the version tag, all of these tags could be used many times in the same header tag.See this example : /*! * @header foo.h * @abstract All foo functions. * @discussion This file contains all declarations for * foo manipulation. * @version 1.0.1 Dec 09 2001 * @author yoda <yoda@star.wars> * @see foo2.h# * @link Starwars Web site <http://www.starwars.com> * @ref xwing::fly * @link Yoda's FTP <ftp://ftp.yoda.wars> * @author Bart <bart@simpson.com> */
Next Page : C/C++ tags | ||
Copyright © 2000-2001 | | | Licence informations |