|
NetSim 1.0.0
An educational network simulation software for students
|
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 PackageDatabase * | instance () |
| Provides access to the singleton instance of the PackageDatabase. | |
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.
|
static |
Provides access to the singleton instance of the PackageDatabase.
| PackageDatabase* | The singleton instance of the PackageDatabase. |
| QList< Package > * PackageDatabase::packageList | ( | ) |
Retrieves the list of packages.
| QList<Package>* | A pointer to the list of packages. |