Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
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
15
namespace
QH
{
16
20
class
AbstractNodeParser
:
public
iParser
21
{
22
Q_OBJECT
23
public
:
24
AbstractNodeParser
(
AbstractNode
*parentNode);
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
32
signals:
33
38
void
sigPingReceived
(
const
QSharedPointer<QH::PKG::Ping> &ping);
39
40
};
41
}
42
#endif
// ABSTRACTNODEPARSER_H
QH::AbstractNodeInfo
The AbstractNodeInfo class contains information about client or server connection and tcp socket of n...
Definition
abstractnodeinfo.h:68
QH::AbstractNodeParser::parserId
QString parserId() const override
parserId This is id of the parsers. All parser will be synced betwin nodes by ids.
Definition
abstractnodeparser.cpp:81
QH::AbstractNodeParser::AbstractNodeParser
AbstractNodeParser(AbstractNode *parentNode)
Definition
abstractnodeparser.cpp:19
QH::AbstractNodeParser::parsePackage
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 ...
Definition
abstractnodeparser.cpp:30
QH::AbstractNodeParser::sigPingReceived
void sigPingReceived(const QSharedPointer< QH::PKG::Ping > &ping)
sigPingReceived This method emited
QH::AbstractNodeParser::version
int version() const override
version This method return version of parser object
Definition
abstractnodeparser.cpp:77
QH::iParser::iParser
iParser(AbstractNode *parentNode)
Definition
iparser.cpp:17
QH::iParser::AbstractNode
friend class AbstractNode
Definition
iparser.h:266
iparser.h
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
QH::ParserResult
ParserResult
The ParserResult enum. Error - parser detect a errorob package. NotProcessed - the parser does not kn...
Definition
iparser.h:35
ping.h
QH::Header
The Header struct 32 bytes.
Definition
header.h:19
src
private
abstractnodeparser.h
Generated by
1.18.0