Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
abstractnodeparser.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2022-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
9#ifndef ABSTRACTNODEPARSER_H
10#define ABSTRACTNODEPARSER_H
11
12#include <iparser.h>
13#include <ping.h>
14
15namespace QH {
16
21{
22 Q_OBJECT
23public:
25 ~AbstractNodeParser() override;
26 ParserResult parsePackage(const QSharedPointer<PKG::AbstractData> &pkg,
27 const Header &pkgHeader,
28 AbstractNodeInfo *sender) override;
29 int version() const override;
30 QString parserId() const override;
31
32signals:
33
38 void sigPingReceived(const QSharedPointer<QH::PKG::Ping> &ping);
39
40};
41}
42#endif // ABSTRACTNODEPARSER_H
The AbstractNodeInfo class contains information about client or server connection and tcp socket of n...
QString parserId() const override
parserId This is id of the parsers. All parser will be synced betwin nodes by ids.
AbstractNodeParser(AbstractNode *parentNode)
ParserResult parsePackage(const QSharedPointer< PKG::AbstractData > &pkg, const Header &pkgHeader, AbstractNodeInfo *sender) override
parsePackage This is main method of all childs classes of an AbstractNode class. This method work on ...
void sigPingReceived(const QSharedPointer< QH::PKG::Ping > &ping)
sigPingReceived This method emited
int version() const override
version This method return version of parser object
iParser(AbstractNode *parentNode)
Definition iparser.cpp:17
friend class AbstractNode
Definition iparser.h:266
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13
ParserResult
The ParserResult enum. Error - parser detect a errorob package. NotProcessed - the parser does not kn...
Definition iparser.h:35
The Header struct 32 bytes.
Definition header.h:19