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