+ -
当前位置:首页 → 问答吧 → EA生成Doxygen格式的C++代码注释

EA生成Doxygen格式的C++代码注释

时间:2009-12-01

来源:互联网

Settings——>Code Generation Templates, C++
File:
/** \file %fileName% \n
 *  \author %classAuthor% \n
 *  \date %eaDateTime% \n
 *  \brief %elemType% %className% 声明文件 \n
 */
FileImpl:
///////////////////////////////////////////////////////////
/** \file %fileNameImpl% \n
 *  \author %classAuthor% \n
 *  \date %eaDateTime% \n
 *  \brief %elemType% %className% 实现文件 \n
 */
///////////////////////////////////////////////////////////\n
ClassNotes:
%if genOptGenComments != "T"%
%endTemplate%

%PI=""%
$wrapLen = %genOptWrapComment%
$style = %genOptCPPCommentStyle%

%if $style == "XML.NET"%
%XML_COMMENT($wrapLen)%
%elseIf $style == "JavaDoc"%
%JAVADOC_COMMENT($wrapLen)%
%else%
/*! \class %className% \n
 *  \brief %classNotes% \n 
 */
%endIf%
Attribute Notes:
%if genOptGenComments != "T"%
%endTemplate%

%PI=""%
$wrapLen = %genOptWrapComment%
$style = %genOptCPPCommentStyle%

%if $style == "XML.NET"%
%XML_COMMENT($wrapLen)%
%elseIf $style == "JavaDoc"%
%JAVADOC_COMMENT($wrapLen)%
%else%
/*! \var %attName% \n
 *  \brief %attNotes% \n
 */
%endIf%
Operation Notes:
%if genOptGenComments != "T" or genOptCPPGenMethodNotesInHeader != "T"%
%endTemplate%

%PI=""%
$wrapLen = %genOptWrapComment%
$style = %genOptCPPCommentStyle%

%if $style == "XML.NET"%
%XML_COMMENT($wrapLen)%
%elseIf $style == "JavaDoc"%
%JAVADOC_COMMENT($wrapLen)%
%else%
/*! \fn %opName% \n
 *  \brief %opNotes% \n
 *  \return %opReturnType% \n
 */
%endIf%

作者: lodengo   发布时间: 2009-12-01

这是语言模板!

感谢楼主分享

作者: jake   发布时间: 2009-12-02

相关阅读 更多

热门下载

更多