You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+75-84Lines changed: 75 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,7 @@ This library consists of two levels (AbstractNode level and DataBaseNode level).
10
10
-[X] Support ssl sockets
11
11
-[X] Support initialize database
12
12
-[X] Support work in database
13
-
-[ ] Support decentralized network mode
14
13
15
-
### AbstractNode level (0)
16
-
#### Description
17
-
The AbstractNode level implement only base functions of create a new work threads and parsing packages.
18
-
For more information see QuasarApp Heart documentation, QH namespace.
19
-
20
-
### DataBaseNode level (1)
21
-
#### Description
22
-
The DataBaseNode level implement methods and packages for work with databases. This level using Qt classes for wrking with database, so for more information about suport databases see [Qt Documentation](https://doc.qt.io/qt-5/sql-driver.html).
23
-
24
-
### NetworkNode level (2)
25
-
#### Description
26
-
This level is still in develop.
27
14
28
15
## Build and Include
29
16
### For cmake projects
@@ -32,13 +19,11 @@ This level is still in develop.
32
19
* git submodule add https://github.com/QuasarApp/Heart.git # add the repository of Heart into your repo like submodule
33
20
* git submodule update --init --recursive
34
21
* Include in your CMakeLists.txt file the main CMakeLists.txt file of Heart library
35
-
```cmake
22
+
23
+
```cmake
36
24
add_subdirectory(Heart)
37
25
```
38
-
* select requiriment build level for you project
39
-
```
40
-
set(HEART_BUILD_LVL 2)
41
-
```
26
+
42
27
where 1 - is code of build level
43
28
44
29
1 - AbstractNode
@@ -57,6 +42,7 @@ This level is still in develop.
57
42
## Usage
58
43
59
44
Create a own package class and override some basic methods.
45
+
60
46
```cpp
61
47
62
48
class MyPackage: public QH::AbstractData
@@ -67,105 +53,110 @@ public:
67
53
// override this method for validation your package class
68
54
bool isValid() const {
69
55
return AbstractData::isValid();
70
-
}; /
56
+
};
71
57
72
58
// your data for for server of client
73
59
std::string _data = "";
74
60
75
61
protected:
76
62
// StreamBase interface override this methods for serialization your package
0 commit comments