用doxygen+graphviz自动化生成代码文档,相关博文:http://www.cnblogs.com/tianzhijiexian/p/4392924.html