• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Beginning to 編程

            VC++ 方面編程文章

             

            Doxygen 源代碼文檔自動(dòng)生成器的使用筆記

            ?

            google 上搜了很久的關(guān)于 Doxygen 使用方法的咚咚,只不過都是英文,而且都很多的規(guī)則。實(shí)際上大家只需要告訴基本的規(guī)則就可以。下面是我對(duì) Doxygen 的摸索

            ?

            首先熟知 Doxygen 產(chǎn)生的文件的基本結(jié)構(gòu) ( Html 1.4.6 為例 )

            Header (頭部)

            MainPage? Files ?Classes

            ?

            那么我們首先建立兩個(gè)類吧,以典型的 Shape 它的繼承類 Rectangle 為例

            (為了表示那些是我的解釋約定 ~ 為解釋符號(hào) 其他的頭文件和源文件的具體內(nèi)容)

            // shape.h

            ?

            ~ 在這個(gè)頭文件中首先要有一些關(guān)于本文件的一些信息或者公司的 copyright 信息

            ~ 至于你想寫什么,發(fā)揮你的創(chuàng)意把。

            ?

            /** \file?

            ?* <pre><b>Richard Zeng Shape Class File Source</b></pre>

            ?? ~ <pre></pre> 為居中顯示

            *? <pre><b>Copyright and Use</b></pre>

            ?

            * \author Richard Zeng

            * \date 2006-3-23

            ?

            ~ \author \date Doxygen 的兩個(gè)關(guān)鍵字

            \author 為作者標(biāo)題

            ? \date 為日期標(biāo)題

            ?

            * <pre>zengyongjoy@gmail.com</pre>

            ? <b>All rights reserved.</b>

            */

            ?

            ?

            /** class shape define

            ?* this is the base class for all Shape

            ?*/

            ?

            ~ Shape 類定義的前面請(qǐng)加上解釋,否則這個(gè)類就不會(huì)產(chǎn)生很重要的

            ?

            class Shape{

            public :

            ?????? Shape();

            ?????? ~Shape();

            ?

            ?????? virtual void Draw(CDC* pDC);

            };

            ?

            ?

            // shape.cpp

            ?

            /** \file

            * <pre><b>Richard Zeng Shape Class File Source</b></pre>

            ?

            *? <pre><b>Copyright and Use</b></pre>

            ?

            * \author Richard Zeng

            * \date 2006-3-23

            ?

            * <pre>zengyongjoy@gmail.com</pre>

            <b>All rights reserved.</b>

            */

            ?

            ~ 上面的就不用說了吧

            #include "shape.h"

            ?

            ~ 解釋,隨便你寫什么都可以的

            ~ 這里我們可以看出在 CPP 中加注釋比較好

            ~ 每個(gè)函數(shù)的實(shí)現(xiàn)都必須加上注釋否則就沒有這個(gè)函數(shù)拉

            ?

            /** default constructor*/

            Shape ::Shape()

            {

            ?

            }

            ?

            /** destructor */

            Shape ::~Shape()

            {

            ?

            }

            ?

            ?

            /** Draw funtion for this shape

            ?* \param CDC* pointer to MFC CDC

            ?*/

            ?

            ~ \param Doxygen 的關(guān)鍵字 用于定義參數(shù)

            ~ \return 為返回關(guān)鍵字

            void Shape::Draw(CDC* pDC)

            {

            ?

            }

            ?

            //Rectangle.h

            /** \file __FILE__

            * <pre><b>Richard Zeng Shape Class File Source</b></pre>

            ?

            *? <pre><b>Copyright and Use</b></pre>

            ?

            * \author Richard Zeng

            * \date 2006-3-23

            ?

            * <pre>zengyongjoy@gmail.com</pre>

            <b>All rights reserved.</b>

            */

            ?

            ?

            #include "shape.h"

            ?

            ?

            /** Rectangle class define

            */

            class Rectangle:publicShape{

            public :

            ?????? Rectangle();

            ?????? ~Rectangle();

            ?

            ?????? void Draw(CDC*pDC);

            ?

            private :

            ?????? int width,height;

            };

            ?

            ?

            //Rectangle.cpp

            ?

            /** \file __FILE__

            * <pre><b>Richard Zeng Shape Class File Source</b></pre>

            ?

            *? <pre><b>Copyright and Use</b></pre>

            ?

            * \author Richard Zeng

            * \date 2006-3-23

            ?

            * <pre>zengyongjoy@gmail.com</pre>

            <b>All rights reserved.</b>

            */

            ?

            ?

            /** default constructor */

            Rectangle ::Rectangle()

            {

            ?

            }

            ?

            /** destructor */

            Rectangle ::~Rectangle()

            {

            ?

            }

            ?

            ?

            /** Draw function

            ?* \param CDC* pointer to MFC CDC Class

            ?*/

            void Rectangle::Draw(CDC* pDC)

            {

            ?

            }


            o_1.PNG??

            ?

            下面是 Doxygen 的主要操作步驟

            首先我們?cè)?/span> MainPage 中看到 ProjectName ProjectVersion (在 Doxygen Wizhard Step1

            中輸入就可以啦 )

            ?? ?

            ?

            ? o_2.PNG

            ?

            ?

            ?

            ?

            ?

            ?

            ?

            ?

            ?

            ?

            ?

            ?

            然后在 Step2

            中選擇保存文件的位置

            ?

            Step3 選擇工作目錄

            Step4 點(diǎn)擊 Start 按鈕, ok 完成。

            打開輸出文件的位置。 Html 文件就生成拉。

            posted on 2006-03-23 22:32 Beginning to 編程 閱讀(18230) 評(píng)論(4)  編輯 收藏 引用 所屬分類: 心得體會(huì)

            評(píng)論

            # re: Doxygen 源代碼文檔自動(dòng)生成器的使用筆記 2006-03-24 10:29 任我行

            用過點(diǎn)點(diǎn),寫注釋的時(shí)候需要掌握一些規(guī)則。
              回復(fù)  更多評(píng)論   

            # re: Doxygen 源代碼文檔自動(dòng)生成器的使用筆記 2006-03-24 13:19 沐楓

            我以前做了一個(gè)doxygen標(biāo)記的小結(jié),希望有幫助。
            http://ly4cn.cnblogs.com/archive/2005/11/23/282637.html  回復(fù)  更多評(píng)論   

            # re: Doxygen 源代碼文檔自動(dòng)生成器的使用筆記 2006-03-29 12:54 lvlouisaslia

            太過簡單了, Doxygen用起來是很方便, 但想要達(dá)到自己所設(shè)想的樣式很難, 它里面的選項(xiàng)太多了, 都難完全搞懂  回復(fù)  更多評(píng)論   

            # re: Doxygen 源代碼文檔自動(dòng)生成器的使用筆記 2009-05-03 12:47 創(chuàng)意產(chǎn)品

            不錯(cuò)  回復(fù)  更多評(píng)論   

            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿(4)

            隨筆分類

            隨筆檔案

            文章檔案

            相冊(cè)

            BlogDev

            搜索

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            国产亚州精品女人久久久久久 | 久久一区二区免费播放| 久久se精品一区二区影院| 久久性精品| 久久狠狠高潮亚洲精品| 久久国产成人| 久久99亚洲网美利坚合众国| 青青青国产成人久久111网站| 久久嫩草影院免费看夜色| 亚洲午夜无码久久久久| 色噜噜狠狠先锋影音久久| 久久久久国产精品三级网| 日日狠狠久久偷偷色综合免费| 久久狠狠高潮亚洲精品| 国产精品午夜久久| 久久强奷乱码老熟女网站| 99久久婷婷国产综合精品草原| 久久国产欧美日韩精品免费| 久久综合中文字幕| 久久er99热精品一区二区| 久久只有这精品99| 日本久久久久久久久久| 精品无码久久久久久午夜| 久久亚洲精品成人无码网站| 久久AⅤ人妻少妇嫩草影院| 久久国产精品-国产精品| 一级a性色生活片久久无少妇一级婬片免费放| 久久久久亚洲AV片无码下载蜜桃 | 无码精品久久久久久人妻中字| 久久se这里只有精品| 久久精品国产亚洲沈樵| 精品久久人妻av中文字幕| 国产精品99久久久久久宅男小说| 久久93精品国产91久久综合| 丁香狠狠色婷婷久久综合| 精品久久久久久久久午夜福利| 久久久久波多野结衣高潮| 久久精品免费一区二区| 精品久久亚洲中文无码| 亚洲av日韩精品久久久久久a| 亚洲va久久久噜噜噜久久狠狠|