NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
packagedatabase.h
Go to the documentation of this file.
1#ifndef PACKAGEDATABASE_H
2#define PACKAGEDATABASE_H
3
5#include <QList>
6
10
11namespace NetSim {
12
15
27public:
33 QList<Package> *packageList();
34
41 static PackageDatabase *instance();
42
43private:
45 PackageDatabase() = default;
46
48 QList<Package> m_packageList{};
49};
50} // namespace NetSim
51
52#endif // PACKAGEDATABASE_H
A singleton class to manage and provide access to a list of Package objects.
Definition packagedatabase.h:26
QList< Package > * packageList()
Retrieves the list of packages.
Definition packagedatabase.cpp:5
static PackageDatabase * instance()
Provides access to the singleton instance of the PackageDatabase.
Definition packagedatabase.cpp:7
Definition logger.h:12
Contains the Package class definition.