-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
22 lines (17 loc) · 1.19 KB
/
main.cpp
File metadata and controls
22 lines (17 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Include necessary header files for application functionality
#include "application/facades/MusicAppFacade.h" // Facade for managing music-related operations
#include "application/session/session.h" // Session management, tracks current user
#include "domain/models/models_header/User.h" // User model definition, for user-related data
#include "infrastructure/database/database_header/db_create.h" // Database creation and management
// Initialize the static member variable to keep track of the current user
User* Session::_curAccount = nullptr;
int main() {
// Uncomment the following lines if database creation is needed
// CreateDB& db = CreateDB::getInstance(); // Get the singleton instance of the database creator
// db.create(); // Create and initialize the database (uncomment if required)
// Initialize the application (using singleton pattern)
Application& app = Application::getInstance(); // Get the singleton instance of the Application class
// Run the application (this likely starts the main application loop)
app.run(); // Starts the application, handles user input and interaction
return 0; // Return 0 to indicate successful execution
}