...
 
Commits (1)
#include "Examples.h"
#include "Src/Shape.h"
#include "Src/Circle.h"
Examples::Examples(void)
{
}
Examples::~Examples(void)
{
}
void Examples::TestCircle()
{
//![TestCircle]
Circle testCircle(15, 25, 8);
testCircle.GetRadius();
testCircle.SetRadius(58);
testCircle.Draw();
//![TestCircle]
}
#pragma once
class Examples
{
public:
Examples(void);
~Examples(void);
void TestCircle(void);
};
......@@ -904,7 +904,7 @@ EXCLUDE_SYMBOLS =
# that contain example code fragments that are included (see the \include
# command).
EXAMPLE_PATH =
EXAMPLE_PATH = ../Examples.cpp
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
......
......@@ -25,6 +25,7 @@
* Following sections describe circle:
* - \ref groupCircleDefinition "Definition of Circle"
* - \ref groupCircleClass "Circle Class"
* - \ref groupCircleUsage "How to use circle class"
*/
/** \defgroup groupCircleDefinition Circle Definition
......@@ -34,6 +35,11 @@
* The distance between any of the points and the centre is called the radius.
*/
/** \defgroup groupCircleUsage Using circle class
* Circle class can be used as following:
* \snippet Examples.cpp TestCircle
*/
int main(void)
{
// set up array to the shapes
......