10#define BIGDATAPARSER_H
28 QSharedPointer<PKG::BigDataHeader>
header;
29 QVector<QSharedPointer<PKG::BigDataPart>>
chaindata;
56 bool newPackage(
const QSharedPointer<PKG::BigDataHeader> &header,
67 bool processPart(
const QSharedPointer<PKG::BigDataPart>& part,
78 bool processRequest(
const QSharedPointer<PKG::BigDataRequest>& request,
107 void insertNewBigData(
const QSharedPointer<PKG::BigDataHeader> &header);
108 void checkOutDatedPacakges(
unsigned int currentProcessedId);
110 QHash<int, PoolData> _pool;
The AbstractNodeInfo class contains information about client or server connection and tcp socket of n...
The AbstractNode class - Abstract implementation of node. this implementation have a methods for send...
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 ...
bool processBigDataWraper(const QSharedPointer< PKG::BigDataWraper > &request, AbstractNodeInfo *sender, const Header &pkgHeader)
sendBigDataPackage This method separate big pacakge and sent only heder ot serve.
bool processPart(const QSharedPointer< PKG::BigDataPart > &part, AbstractNodeInfo *sender, const QH::Header &pkgHeader)
processPart This method process part of package
bool processRequest(const QSharedPointer< PKG::BigDataRequest > &request, QH::AbstractNodeInfo *sender, const QH::Header &pkgHeader)
finishPart This metho process last package of big data transaction.
BigDataParser(AbstractNode *parentNode)
int version() const override
version This method return version of parser object
bool newPackage(const QSharedPointer< PKG::BigDataHeader > &header, AbstractNodeInfo *sender, const Header &pkgHeader)
newPackage This method process first header packge of the big data.
The AbstractData class is provide base functions for transport data by network For create you own pac...
The BigDataPart class This data class used for transporting big data files greater than 64kb.
The BigDataRequest class contains missing package parts for redownload. If missing parts count is 0 t...
The BigDataWraper class is wrapper of any big data commands.
iParser(AbstractNode *parentNode)
friend class AbstractNode
The PKG namesapce - this namespace contains all default packages of the Heart library....
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
ParserResult
The ParserResult enum. Error - parser detect a errorob package. NotProcessed - the parser does not kn...
QSharedPointer< PKG::BigDataHeader > header
QVector< QSharedPointer< PKG::BigDataPart > > chaindata