2011-08-19 79 views
0

這引用了正常的頁面文檔。Doxygen - 使所有出現的字詞引用相同的東西

,我想知道是否有可能做的話參考的東西每一次出現(在這種情況下,鏈接到一個類文件。

例如

/** 
@mainpage Blah 
@re com.blah.class label = Class **(or something)** 

If you notice Class does this. 
... 
... 

This is because the way Class works... 
... 
@endmainpage 
*/ 

,並在頁面當你閱讀,你可以點擊進入單詞類,帶你到文檔

+0

更清晰,而不必爲此到處 @ ref com.blah.class「Class」 – Th3sandm4n

回答

1

如果頁面放在正確的上下文(命名空間/包),那麼它應該工作,例如看到下面的(C++)的例子:

/** A namespace */ 
namespace N 
{ 
    /** A class */ 
    class C 
    { 
    }; 

    /** @mainpage My main page 
    * Class C is linked here! 
    */ 
} 

/** @page mypage A Page 
* Class C is not linked, but N::C is. 
*/ 

另一種方法是使用

/** @page mypage A Page 
* Class @l{C} is not linked, but N::C is. 
*/ 

隨着在配置文件中的以下別名定義:

ALIASES    = l{1}="@ref N::\1 \"\1\"" 
相關問題