Heart
1.3.848.aa44c26
Heart is base back end library for your c++ Qt projects.
header.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018-2025 QuasarApp.
3
* Distributed under the lgplv3 software license, see the accompanying
4
* Everyone is permitted to copy and distribute verbatim copies
5
* of this license document, but changing it is not allowed.
6
*/
7
8
#ifndef ABSTRACTHEADER_H
9
#define ABSTRACTHEADER_H
10
#include "
heart_global.h
"
11
12
13
namespace
QH
{
14
18
#pragma pack(push, 1)
19
struct
HEARTSHARED_EXPORT
Header
{
23
unsigned
short
command = 0;
//2 bytes
24
28
const
unsigned
char
headerVersion = 1;
//3 bytes
29
33
unsigned
int
size = 0;
//7 bytes
34
38
unsigned
int
hash = 0;
//11 bytes
39
44
unsigned
int
triggerHash = 0;
//15 bytes
45
49
unsigned
long
long
unusedSpace1 = 0;
//23 bytes
50
unsigned
long
long
unusedSpace2 = 0;
//31 bytes
51
unsigned
char
unusedSpace3 = 0;
//32 bytes
52
56
Header
();
57
~Header
() =
default
;
58
63
bool
isValid()
const
;
64
68
void
reset();
69
74
QString toString()
const
;
75
76
};
77
#pragma pack(pop)
78
}
79
80
81
82
#endif
// ABSTRACTHEADER_H
heart_global.h
HEARTSHARED_EXPORT
#define HEARTSHARED_EXPORT
Definition
heart_global.h:19
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
QH::Header
The Header struct 32 bytes.
Definition
header.h:19
QH::Header::~Header
~Header()=default
src
public
header.h
Generated by
1.9.8