NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
NetSim::PackageDatabase Class Reference

A singleton class to manage and provide access to a list of Package objects. More...

#include <packagedatabase.h>

Public Member Functions

QList< Package > * packageList ()
 Retrieves the list of packages.
 

Static Public Member Functions

static PackageDatabaseinstance ()
 Provides access to the singleton instance of the PackageDatabase.
 

Detailed Description

A singleton class to manage and provide access to a list of Package objects.

The PackageDatabase class centralizes the management and storage of packages. Being a singleton, it ensures that there's a single instance of the package list throughout the application, ensuring consistent and coordinated access.

Member Function Documentation

◆ instance()

PackageDatabase * PackageDatabase::instance ( )
static

Provides access to the singleton instance of the PackageDatabase.

Return values
PackageDatabase*The singleton instance of the PackageDatabase.
See also
instance

◆ packageList()

QList< Package > * PackageDatabase::packageList ( )

Retrieves the list of packages.

Return values
QList<Package>*A pointer to the list of packages.

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