- /** description
- * description
- * description
- */
5.3.2 简述与详述的方式Doxygen支持的块(类、函数、结构体等)的注释描述分为两种:简述 和 详述一般注释的描述由简述开始,经过特殊分隔方式后,后面紧跟详述的内容,javaDoc风格可以使用的分隔方法有以下两种:1) 使用 \brief 参数标识,空行作为简述和详述的间隔标识
- /*! @brief Brief description.
- * description continued.
- *
- * Detailed description starts here.
- */
- /** Brief description
- * description continued
- *
- * Detailed description starts here.
- */
- /** Brief description
- * description continued . (注意:这里有一个小数点,加上一个空格)
- * Detailed description starts here.
- */
- //////////////////////////////////////////////////////////////////////////
- /// COPYRIGHT NOTICE
- /// Copyright (c) 2009, 华中科技大学 (版权声明)
- /// All rights reserved.
- ///
- /// @file (本文件的文件名eg:Test.h)
- /// @brief (本文件实现的功能的简述)
- ///
- ///(本文件实现的功能的详述)
- ///
- /// @version 1.1 (版本声明)
- /// @author (作者,eg:卢俊)
- /// @date (文件创建日期,eg:2009年7月15日)
- ///
- ///
- /// 修订说明:最初版本
- //////////////////////////////////////////////////////////////////////////
- /** 本类的功能:打印错误信息
- *
- * 本类是一个单件
- * 在程序中需要进行错误信息打印的地方
- */
- class CPrintError
- {
- ……
- }
- /** 成员变量描述 */
- int m_Var;
- int m_color; /**< 颜色变量 */
- /** 下面是一个含有两个参数的函数的注释说明(简述)
- *
- * 这里写该函数的详述信息
- * @param a 被测试的变量(param描述参数)
- * @param s 指向描述测试信息的字符串
- * @return 测试结果 (return描述返回值)
- * @see Test() (本函数参考其它的相关的函数,这里作一个链接)
- * @note (note描述需要注意的问题)
- */
- int testMe(int a,const char *s);
- /** 颜色的枚举定义
- *
- * 该枚举定义了系统中需要用到的颜色\n
- * 可以使用该枚举作为系统中颜色的标识
- */
- enum TEnum
- {
- RED, /**< 枚举,标识红色 */
- BLUE, /**< 枚举,标志蓝色 */
- YELLOW /**< 枚举,标志黄色. */
- }enumVar;