doxygen中注释,内嵌dot, msc的例子

doxygen主要是对代码中的标记自动生成html/pdf/latex文档。mscgen用来生成时序图,dot用来生成函数调用关系图。如果希望某些文件或函数不要在最终文档圼,不加注释标记就行了。

/*!@file
@brief doxgen usages
@author 谁tmd的搞的
@version 版本了
@date 你啥时候搞的
@note 要有file标记,下面的配置需要安装graphviz和mscgen。
generate a template:
doxgen -g 
edit Doxyfile: 
FILE_PATTERNS = *.c *h *.java
RECURSIVE = YES
OUTPUT_DIRECTORY = doc
HAVE_DOT
CALL_GRAPH
CALLER_GRAPH
then run:
doxgen

@since 历史修改记录




\msc
a,b;
 a=>b [label="data1", URL="\ref A"];
 a-xb [label="data2", URL="\ref A", ID="1"];
 a=>b [label="data3"];
 a<=b [label="ack1, nack2"];
 a=>b [label="data2", arcskip="1"];
 |||;
 a<=b [label="ack3"];
 |||;

\endmsc
<OL>
<LI> In some cases, the system may have failed before this signal is sent
</OL>
*/

/*! \mainpage
  
Class relations expressed via an inline dot graph:
\dot
digraph example {
 node [shape=record, fontname=Helvetica, fontsize=10];
 b [ label="class B" URL="\ref A"];
 c [ label="class C" URL="\ref A"];
 b -> c [ arrowhead="open", style="dashed" ];
}
\enddot

 Note that the classes in the above graph are clickable (in the HTML output).
*/



/**dango*/
typedef struct ATag
{
  TaskId reqTaskId; /*!< task id*/
}A;



/*!这里写这个函数是干什么用的
 @param[in]  arg1
 @param[in]  arg2
 @param[out]  out1
 @return    返回值解释一下
 @warning 警告: 例如: 参数不能为空啊,内存要外部释放之类的费话
 @note 注解  随便你了
 @see                相当于是请参考xxoo函数之类的
*/
int function0(int arg1, int arg2, int *out1);

/*!fun 1
*/
int function1(int arg1, int arg2, int *out1);


int function1(int arg1, int arg2, int *out1)
{
	return function0(arg1, arg2, out1);
}







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值