Doxygen C example  0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Classes | Typedefs | Enumerations | Functions
doxygen_c.h File Reference

File containing example of doxygen usage for quick reference. More...

#include <systemheader1.h>
#include <systemheader2.h>
#include <box/header1.h>
#include <box/header2.h>
#include "local_header1.h"
#include "local_header2.h"

Go to the source code of this file.

Classes

struct  BoxStruct_struct
 Use brief, otherwise the index won't have a brief explanation. More...
 

Typedefs

typedef enum BoxEnum_enum BoxEnum
 Use brief, otherwise the index won't have a brief explanation.
 
typedef struct BoxStruct_struct BoxStruct
 Use brief, otherwise the index won't have a brief explanation.
 

Enumerations

enum  BoxEnum_enum { BOXENUM_FIRST, BOXENUM_SECOND, BOXENUM_ETC }
 Use brief, otherwise the index won't have a brief explanation. More...
 

Functions

BOXEXPORT BoxStructBox_The_Function_Name (BoxParamType1 param1, BoxParamType2 param2)
 Example showing how to document a function with Doxygen.
 
BOXEXPORT void * Box_The_Second_Function (void)
 A simple stub function to show how links do work.
 
BOXEXPORT void Box_The_Last_One (void)
 

Detailed Description

File containing example of doxygen usage for quick reference.

Author
My Self
Date
9 Sep 2012 Here typically goes a more extensive explanation of what the header defines. Doxygens tags are words preceeded by either a backslash \ or by an at symbol @.
See Also
http://www.stack.nl/~dimitri/doxygen/docblocks.html
http://www.stack.nl/~dimitri/doxygen/commands.html

Typedef Documentation

typedef enum BoxEnum_enum BoxEnum

Use brief, otherwise the index won't have a brief explanation.

Detailed explanation.

typedef struct BoxStruct_struct BoxStruct

Use brief, otherwise the index won't have a brief explanation.

Detailed explanation.

Enumeration Type Documentation

Use brief, otherwise the index won't have a brief explanation.

Detailed explanation.

Enumerator:
BOXENUM_FIRST 

Some documentation for first.

BOXENUM_SECOND 

Some documentation for second.

BOXENUM_ETC 

Etc.

Function Documentation

BOXEXPORT BoxStruct* Box_The_Function_Name ( BoxParamType1  param1,
BoxParamType2  param2 
)

Example showing how to document a function with Doxygen.

Description of what the function does. This part may refer to the parameters of the function, like param1 or param2. A word of code can also be inserted like this which is equivalent to this and can be useful to say that the function returns a void or an int. If you want to have more than one word in typewriter font, then just use <tt>. We can also include text verbatim,

like this

Sometimes it is also convenient to include an example of usage:

BoxStruct *out = Box_The_Function_Name(param1, param2);
printf("something...\n");

Or,

1 pyval = python_func(arg1, arg2)
2 print pyval

when the language is not the one used in the current source file (but be careful as this may be supported only by recent versions of Doxygen). By the way, this is how you write bold text or, if it is just one word, then you can just do this.

Parameters
param1Description of the first parameter of the function.
param2The second one, which follows param1.
Returns
Describe what the function returns.
See Also
Box_The_Second_Function
Box_The_Last_One
http://website/
Note
Something to note.
Warning
Warning.
BOXEXPORT void Box_The_Last_One ( void  )

Brief can be omitted. If you configure Doxygen with JAVADOC_AUTOBRIEF=YES, then the first Line of the comment is used instead. In this function this would be as if

@brief Brief can be omitted. 

was used instead.

BOXEXPORT void* Box_The_Second_Function ( void  )

A simple stub function to show how links do work.

Links are generated automatically for webpages (like http://www.google.co.uk) and for structures, like BoxStruct_struct. For typedef-ed types use BoxStruct. For functions, automatic links are generated when the parenthesis () follow the name of the function, like Box_The_Function_Name(). Alternatively, you can use Box_The_Function_Name.

Returns
NULL is always returned.