admin管理员组文章数量:1387358
Does doxygen have a special command to include a file into a source file and doxygen treats the included file as if it were directly in the source file?
Both variants shall generate the same output. It's not just about replacing @details
, but a large amount of text.
Variant A
// --- SourceFile.c ---
/*! \brief description
* \details description
*/
Variant B
// --- SourceFile.c ---
/*! \brief description
* \command file.txt -> this shall insert file.txt here
*/
// --- file.txt ---
// \details description
Does doxygen have a special command to include a file into a source file and doxygen treats the included file as if it were directly in the source file?
Both variants shall generate the same output. It's not just about replacing @details
, but a large amount of text.
Variant A
// --- SourceFile.c ---
/*! \brief description
* \details description
*/
Variant B
// --- SourceFile.c ---
/*! \brief description
* \command file.txt -> this shall insert file.txt here
*/
// --- file.txt ---
// \details description
Share
Improve this question
edited Mar 18 at 9:42
albert
9,0953 gold badges22 silver badges39 bronze badges
asked Mar 18 at 9:28
DgoDgo
555 bronze badges
4
|
1 Answer
Reset to default 0In newer versions of doxygen the \include special command has an additional option. With the option {doc} the contents of file.txt is treated as if it were directly in the source file.
// --- SourceFile.c ---
/*! \brief description
* \include{doc} file.txt
*/
// --- file.txt ---
// \details description
本文标签: Include file with doxygen special commandsStack Overflow
版权声明:本文标题:Include file with doxygen special commands - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744514462a2610075.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
\include
command not do what you want to do? – Friedrich Commented Mar 18 at 9:35\include
command and at the\snippet
command with its options. Furthermore which version of doxygen are you using (very important in this case!)? – albert Commented Mar 18 at 9:42\include
and\snippet
commands. I certainly do advise to update. – albert Commented Mar 18 at 11:31