forked from tmont004/Virtual-Library-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (25 loc) · 1.02 KB
/
Copy pathmain.cpp
File metadata and controls
32 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//Name: William Denson, Constantine Ewan, Taylor Montgomery, Cesar Ortiz Machin, John Parker, Riley Pence
//Description: Week 8 Project: Virtual Library Management System
//Date: 06/29/2024
#include <iostream>
#include <string>
#include "LibrarySystem.h"
#include "user_system.hpp" // Logic for the welcome page
#include "globals.h"
string filename = "userDatabase.json";
// Main function: Entry point of the program
int main() {
// Create the UserRegistry instance with the specified file
UserRegistry userRegistry(filename);
string loggedInUsername;
// Run the user interface and capture the username of the logged-in user
if (runUserInterface(userRegistry, loggedInUsername)) {
// Create a UserInfo object with the logged-in username
UserInfo userInfo(loggedInUsername, userRegistry);
// Create a LibrarySystem object with the UserInfo
LibrarySystem librarySystem(userInfo);
// Run the library system
librarySystem.run();
}
return 0;
}