-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSomeClass.h
74 lines (65 loc) · 1.16 KB
/
SomeClass.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
#include <string>
#include <vector>
/**
* Empty BaseClass, just to show how it looks in doxygen.
*
* Here is some graph:
*
* \startuml
* Sender->Receiver : Command()
* Sender<--Receiver : Ack()
* \enduml
*
* How you like it?
*
*/
class BaseClass
{
public:
BaseClass()
{
mPointer = new int(5);
};
~BaseClass() {};
void freePtr()
{
delete mPointer;
};
int* mPointer;
};
/**
* Empty data class, just to show how it looks in doxygen.
*/
class Data
{
public:
Data() {};
~Data() {};
};
/**
* SomeClass description. This is a test class ment to show
* how to create, build, use and document classes from other files.
*
* \warning beware, this is how warning looks like.
*/
class SomeClass : public BaseClass
{
int mVal {0}; ///< Stores the value
std::vector<Data> mData;
std::vector<std::string> mStrings;
public:
SomeClass(); ///< Creates empty SomeClass
~SomeClass();
Data* mParent;
/**
* Sets the value
* @param x input value
*/
void set(int x);
/**
* get the value
* @return current value
*/
int get();
};