cleanCppProject  0.2.0
SomeClass.h
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 #include <vector>
4 
5 
6 /**
7  * Empty BaseClass, just to show how it looks in doxygen.
8  *
9  * Here is some graph:
10  *
11  * \startuml
12  * Sender->Receiver : Command()
13  * Sender<--Receiver : Ack()
14  * \enduml
15  *
16  * How you like it?
17  *
18  */
19 class BaseClass
20 {
21  public:
23  {
24  mPointer = new int(5);
25  };
26 
28  void freePtr()
29  {
30  delete mPointer;
31  };
32  int *mPointer;
33 };
34 
35 /**
36  * Empty data class, just to show how it looks in doxygen.
37  */
38 class Data
39 {
40  public:
41  Data(){};
42  ~Data(){};
43 };
44 
45 /**
46  * SomeClass description. This is a test class ment to show
47  * how to create, build, use and document classes from other files.
48  *
49  * \warning beware, this is how warning looks like.
50  */
51 class SomeClass : public BaseClass
52 {
53  int mVal{0}; ///< Stores the value
54  std::vector<Data> mData;
55  std::vector<std::string> mStrings;
57 
58  public:
59  SomeClass(); ///< Creates empty SomeClass
60  ~SomeClass();
61 
62 
63  /**
64  * Sets the value
65  * @param x input value
66  */
67  void set(int x);
68 
69  /**
70  * get the value
71  * @return current value
72  */
73  int get();
74 };
SomeClass description.
Definition: SomeClass.h:51
Data * mParent
Definition: SomeClass.h:56
Data()
Definition: SomeClass.h:41
~BaseClass()
Definition: SomeClass.h:27
BaseClass()
Definition: SomeClass.h:22
~Data()
Definition: SomeClass.h:42
Empty BaseClass, just to show how it looks in doxygen.
Definition: SomeClass.h:19
int * mPointer
Definition: SomeClass.h:31
std::vector< std::string > mStrings
Definition: SomeClass.h:55
std::vector< Data > mData
Definition: SomeClass.h:54
void freePtr()
Definition: SomeClass.h:28
Empty data class, just to show how it looks in doxygen.
Definition: SomeClass.h:38