2016-02-25 76 views
0

我要评论大枚举并已分组一些枚举元素(它们彼此跟随)有没有办法如何区分使用doxygen的枚举组?

想象枚举这样的:

/** @brief device OpCodes 
*/ 
typedef enum opCodes_e { 
    A = 0, ///< init 
/** @addtogroup bluetooth commands group 
* @{ 
*/ 
    B0 = 1, ///< BLE connect 
    B1 = 2, ///< BLE disconnect 
/** @} */ 
    C = 3 ///< handle pressure sensor 
} t_opCodes; 

,我想:

  1. 结果在一张桌子里。
  2. 都在那里也将组命名为
  3. 直观地显示其枚举元素是组

例如结果中的可能是这个样子:

device OpCodes 
A  init 
--------------------------- 
bluetooth commands group 
    B0  BLE connect 
    B1  BLE disconnect 
--------------------------- 
C  handle pressure sensor 

我不希望任何特定视图。以上只是我想要的插图。你知道在doxygen中是否有这样的可能吗?如果是的话那么如何?

回答

0

一个棘手的业务的位得到它的工作与这种解决方案只是为HTML输出

/** @brief device OpCodes 
*/ 
typedef enum opCodes_e { 

A = 0, /**< inlet2 */ 
/**< @htmlonly <tr><td colspan=2 align=center class="fieldname"><b>BlueTooth</b></td></tr> @endhtmlonly */ 
B0 = 1, ///< BLE connect2 
B1 = 2, ///< BLE disconnect2 
C = 3 ///< handle pressure sensor 
} t_opCodes; 

注意:一个HAST的头是在/ **。*。否则会发生额外的空 行。

相关问题