Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
QH::PackageManager Class Reference

The PakcageManager class contains all processed packages. Working like a cache of packages. More...

#include <packagemanager.h>

Collaboration diagram for QH::PackageManager:
Collaboration graph

Public Member Functions

 PackageManager ()
 
 ~PackageManager ()
 
const PackagegetPkgFromArhive (const unsigned int &id) const
 getPkgFromArhive This method return pointer to package from archive.
 
bool contains (const unsigned int &id) const
 contains This method checks if the package contains in this container by id.
 
void processed (const Package &pkg, char processResult)
 processed This method add a package to the archive.
 

Detailed Description

The PakcageManager class contains all processed packages. Working like a cache of packages.

Definition at line 25 of file packagemanager.h.

Constructor & Destructor Documentation

◆ PackageManager()

QH::PackageManager::PackageManager ( )

Definition at line 18 of file packagemanager.cpp.

◆ ~PackageManager()

QH::PackageManager::~PackageManager ( )

Definition at line 23 of file packagemanager.cpp.

Member Function Documentation

◆ contains()

bool QH::PackageManager::contains ( const unsigned int &  id) const

contains This method checks if the package contains in this container by id.

Parameters
idThis is unique key of package. In Default implementation it is qHash of package.
Returns
True if the pakcage has been parsed.

Definition at line 39 of file packagemanager.cpp.

Here is the caller graph for this function:

◆ getPkgFromArhive()

const Package * QH::PackageManager::getPkgFromArhive ( const unsigned int &  id) const

getPkgFromArhive This method return pointer to package from archive.

Parameters
idThis is id of the requirement package.
Returns
pointer of the processed package, if package not find then return nullptr.

Definition at line 31 of file packagemanager.cpp.

Here is the call graph for this function:

◆ processed()

void QH::PackageManager::processed ( const Package pkg,
char  processResult 
)

processed This method add a package to the archive.

Parameters
pkgThis is object of the package.
processResultThis is result of method parsePackage. For more information see ParserResult enum.

Definition at line 44 of file packagemanager.cpp.


The documentation for this class was generated from the following files: