我正在使用 doxywizard。在 Expert 选项卡下,在 Input item-list 的 EXAMPLE_PATH 中,我包含了两个路径,每个路径都指向一个 .cpp 文件。但是,在生成的文档中,无论顺序如何,我只看到了一个。
在 Doxyfile 中,我看到了这个:
EXAMPLE_PATH = ../../../Inria/rkd/Samaras/final/code/main_boost.cpp \
../../../Inria/rkd/Samaras/final/code/main.cpp
我错过了什么?
如果有直接编辑 Doxyfile 的解决方案,我会很感兴趣。
最佳答案
EXAMPLE_PATH 列出了您存储示例文件的目录。 如果要为特定类添加示例,可以在类的头文件中引用。
EXAMPLE_PATH = ../../../Inria/rkd/Samaras/final/code
/** \example main_boost.cpp
* This is an example of how to use main_boost.
*/
/** \example main.cpp
* This is an example of how to use main.
*/
在此处查看更多信息:http://www.doxygen.nl/manual/commands.html#cmdexample
关于c++ - 如何在 Doxygen 中拥有多个示例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26004151/