forked from sphinx-contrib/doxylink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_lib.h
51 lines (38 loc) · 852 Bytes
/
my_lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <string>
#include <QObject>
/**
* Example documented function
*/
int my_func();
int my_func(int foo);
int my_func(float);
int my_func(std::string a, int b);
int my_func(int b, std::string a);
/// \defgroup ClassesGroup A group of the classes
/// @{
namespace my_namespace
{
class MyClass: public QObject
{
Q_OBJECT
Q_PROPERTY(double my_method READ my_method);
public:
MyClass();
double my_method();
};
}
/// This class has the same name but is a different class
class MyClass
{
public:
MyClass();
};
/// @}
/// A simple macro
#define MY_MACRO(x) foo(x)
// A simple enum
enum Color { red, green, blue };
// An enum class
enum class Color_c { red, green, blue };
// A function that triggers a warning from the parser
void DEFINE_bool(show, false, "Enable visualization");