這是我平時用來在unix/linux上開發c++的一個小工具。可以自動產生標頭檔的wrapper,author,date,可以根據標頭檔自動產生cpp檔案的架構。可以自動產生makefile,自動產生unit test。
依賴的軟體包是:
- Python 2.5. 可以從這裡下載 http://www.python.org
- cppunit. 可以從這裡下載 http://cppunit.sf.net
有任何問題可以report給我<wanjunfeng@gmail.com>.
to install:
python setup.py
Usage: fgen [options] arguments
Options:
-c, --cpp
generate cpp file
-m, --makefile
specify filename to generate makefile, default to makefile
-u, --unittest
generate unit test class for the specified class. if unit test makefile and main.cc don't exist, will generate them
-d, --doc
generate the doxygen document for the header file
-h HEADER, --header=HEADER
specify header file to generate or to generate cpp file base on this header file
Please report bugs to <wanjunfeng@gmail.com>, thanks!
從這裡下載!
如果沒裝python的,可以試試這個!(是我編譯後的exe包),解壓後直接把.fgen目錄拷貝到HOME下就可以使用fgen這個exe檔案了。
有什麼建議,批評或表揚請留言,謝謝!:)
這裡是example!
最新的版本請從http://fgen.sourceforge.net下載!