2016-02-25 118 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的頭是在/ **。*。否則會發生額外的空 行。

相關問題