-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobal.h
More file actions
28 lines (26 loc) · 888 Bytes
/
Global.h
File metadata and controls
28 lines (26 loc) · 888 Bytes
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
/**
* @file Global.h
* @author Bank System Developer
* @version 1.0
* @date 2024
*
* @brief Global variables and constants for the Bank Management System
*
* This header file contains global variables that are shared across
* the entire application. It should be used sparingly and only for
* truly global state that needs to be accessible from multiple modules.
*/
#pragma once
#include <iostream>
#include "clsUser.h"
/**
* @brief Global variable storing the currently logged-in user
*
* This variable holds the user object for the currently authenticated
* user session. It is initialized as an empty user object and gets
* populated when a user successfully logs in.
*
* @note This is a global variable that should be used carefully.
* Consider refactoring to use a session management class in future versions.
*/
clsUser CurrentUser = clsUser::Find("", "");