I am using doxygen version 1.8.8 to build the C++ documentation. I included a detailed description of my templated class as follows:
/** A test class. Detailed description of the test class
* Usage:
* @code
* test a;
* @endcode
*/
template<>
class test
{
//some class
};
and want to include an example to a file called testexample.cpp
if I just put the @example at the end of the detailed description the detailed description is applied to the example.
/** A test class. Detailed description of the test class
* Usage:
* @code
* test a;
* @endcode
* @example testexample.cpp
* An example of the test class.
*/
template<>
class test
{
//some class
};
How can I have a detailed description of the class AND a link to a file of an example which shows the usage of the class in a detailed manner?
In the doxygen example of @example they reference an example to a member variable. And the example is linked to this member function. This is not what I wish to achieve in this case since I want to show how this class can be used in a fully working example and not only in a usage instruction.