Add files and function header documentation across Views
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
/*
|
||||
* File: AdminMenu.cpp
|
||||
* Description: Handles user-related operations such as creation, authentication, and validation.
|
||||
* Author: Trenser
|
||||
* Created: 02-Apr-2026
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include "AdminMenu.h"
|
||||
#include"InputHelper.h"
|
||||
#include"OutputHelper.h"
|
||||
|
||||
/*
|
||||
* Function: AdminMenu::run
|
||||
* Description: Starts and manages the administrator menu loop. Continuously displays
|
||||
* options to the administrator until logout is selected or an exception occurs.
|
||||
* Parameters:
|
||||
* None
|
||||
* Returns:
|
||||
* None
|
||||
*/
|
||||
void AdminMenu::run()
|
||||
{
|
||||
bool isMenuActive = true;
|
||||
@@ -27,6 +43,15 @@ void AdminMenu::run()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Function: AdminMenu::handleOperation
|
||||
* Description: Processes the administrator’s menu choice and executes the corresponding action.
|
||||
* Parameters:
|
||||
* choice - integer representing the selected menu option
|
||||
* Returns:
|
||||
* true - if the menu should remain active
|
||||
* false - if the administrator chooses to logout
|
||||
*/
|
||||
bool AdminMenu::handleOperation(int choice)
|
||||
{
|
||||
switch (choice)
|
||||
|
||||
Reference in New Issue
Block a user