Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
abstractnodeparser.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2022-2024 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{
23public:
25 ~AbstractNodeParser() override;
27 const Header &pkgHeader,
28 AbstractNodeInfo *sender) override;
29 int version() const override;
30 QString parserId() const override;
31
33
39
40};
41}
42#endif // ABSTRACTNODEPARSER_H
The AbstractNodeInfo class contains information about client or server connection and tcp socket of n...
The AbstractNodeParser class is main parser of the abstract level of the hear lib.
QString parserId() const override
parserId This is id of the parsers. All parser will be synced betwin nodes by ids.
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
The AbstractNode class - Abstract implementation of node. this implementation have a methods for send...
The iParser class This class provide functions for parsing income packages. For yousing just override...
Definition iparser.h:51
void registerPackageType()
registerPackageType This method register package type T. This is need to prepare pacakge for parsing ...
Definition iparser.h:62
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