# mohsan57/university-management-system-dsa-project architecture

> Architecture diagram of the GitHub repository mohsan57/university-management-system-dsa-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohsan57/university-management-system-dsa-project
- Repository: https://github.com/mohsan57/university-management-system-dsa-project

## Overview

##### Main Components
- Utility/Functions Module: Represent the Functions.h file as a helper or utility module that provides common functionalities required across the roles.
- Main Application: Main.cpp serves as the primary entry point. Represent it as the system orchestration component that ties together the instantiation and interactions of the various role modules.

##### Relationships and Interactions
- Associations: Indicate that the utility functions (from Functions.h) are invoked by various role classes to perform common tasks like generating auto-generated IDs, emails, and other administrative functions.

##### Architectural Patterns and Principles
- Object-Oriented Design: Annotate components to emphasize that each role is abstracted as a class with attributes and methods supporting OOP principles.
- Separation of Concerns: Illustrate how file handling and data structure management are separate concerns from UI/logic of each role, ensuring modularity.
- Use of Data Structures: Specifically denote that the design leverages specific data structures (possibly visualizing them as internal “containers” within the system) to manage dynamic data like students’ records.

- A “Utility Functions” or “DSA & File Handling” module is connected to the role components, denoting common services.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Presentation/Control Layer"
        MA["Main Application"]:::control
    end

    subgraph "Business Logic Layer"
        CEO["CEO (Role Class)"]:::role
        HOD["HOD (Role Class)"]:::role
        ADMIN["Admin (Role Class)"]:::role
        REG["Registration Office (Role Class)"]:::role
        STUDENT["Student (Role Class)"]:::role
        UT["Utility Functions"]:::utility
    end

    subgraph "Data Management Layer"
        DS["DSA & File System\n(File Handling & Data Structures)"]:::data
    end

    %% Main Application instantiates role classes
    MA -->|"instantiates"| CEO
    MA -->|"instantiates"| HOD
    MA -->|"instantiates"| ADMIN
    MA -->|"instantiates"| REG
    MA -->|"instantiates"| STUDENT

    %% Role classes call utility functions
    CEO -->|"calls"| UT
    HOD -->|"calls"| UT
    ADMIN -->|"calls"| UT
    REG -->|"calls"| UT
    STUDENT -->|"calls"| UT

    %% Role classes update/read data from Data Management Layer
    CEO -->|"updates"| DS
    HOD -->|"updates"| DS
    ADMIN -->|"updates"| DS
    REG -->|"updates"| DS
    STUDENT -->|"updates"| DS
    UT -->|"uses"| DS

    %% Click Events
    click CEO "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/CEO.h"
    click HOD "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/HOD.h"
    click ADMIN "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/Admin.h"
    click REG "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/Registration office.h"
    click STUDENT "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/Student.h"
    click UT "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/Functions.h"
    click MA "https://github.com/mohsan57/university-management-system-dsa-project/blob/master/Main.cpp"

    %% Styles
    classDef control fill:#bbf,stroke:#000,stroke-width:1px;
    classDef role fill:#f96,stroke:#000,stroke-width:1px;
    classDef utility fill:#cfc,stroke:#000,stroke-width:1px;
    classDef data fill:#fc9,stroke:#000,stroke-width:1px;
```
