# thanu-san/project-employee-management-system architecture

> Architecture diagram of the GitHub repository thanu-san/project-employee-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thanu-san/project-employee-management-system
- Repository: https://github.com/thanu-san/project-employee-management-system

## Overview

This is a console employee-management system: users sign in or create employee accounts, then receive role-specific menus for administration or self-service. The Manager class centralizes authentication, workflows, and CSV persistence; Employee, Attendance, and Report implement the core record and payment/report representations. The README documents capabilities whose individual handlers were not sampled, so they are represented at the Manager workflow level rather than inferred as separate call chains. Evidence for several persistence and menu relationships is limited to excerpts or README documentation.

Main entry points: [`src/Manager.cpp`](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp) (Manager workflows), [`src/main.cpp`](https://github.com/thanu-san/project-employee-management-system/blob/main/src/main.cpp) (Program entry), [`src/Employee.cpp`](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Employee.cpp) (Employee records), [`src/Attendance.cpp`](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Attendance.cpp) (Attendance and pay)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application and access"]
  node_entry["Program entry<br/>[main.cpp]"]
  node_manager["Manager workflows<br/>[Manager.cpp]"]
end

subgraph group_workforce["Employee administration"]
  node_admin["Admin operations<br/>[Manager.cpp]"]
  node_employee["Employee records<br/>[Employee.cpp]"]
end

subgraph group_selfservice["Employee self-service"]
  node_employee_self["Employee self-service<br/>[Manager.cpp]"]
end

subgraph group_records["Records and persistence"]
  node_attendance["Attendance and pay<br/>[Attendance.cpp]"]
  node_reports["Report records<br/>[Report.cpp]"]
  node_employee_csv[("Employee CSV<br/>[employees.csv]")]
  node_attendance_csv[("Attendance CSV<br/>[Attendance.csv]")]
  node_reports_csv[("Reports CSV<br/>[Reports.csv]")]
  node_backups[("Employee backups")]
end

node_user(("Console user"))

node_user -->|"uses"| node_entry
node_entry -->|"creates and invokes"| node_manager
node_manager -.->|"offers admin menu"| node_admin
node_manager -.->|"offers employee menu"| node_employee_self
node_manager -->|"manages records"| node_employee
node_manager -->|"manages attendance"| node_attendance
node_manager -->|"manages reports"| node_reports
node_manager -.->|"loads and saves"| node_employee_csv
node_manager -.->|"loads and saves"| node_attendance_csv
node_manager -->|"loads and saves"| node_reports_csv
node_manager -.->|"backs up and restores"| node_backups

click node_entry "https://github.com/thanu-san/project-employee-management-system/blob/main/src/main.cpp"
click node_manager "https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp"
click node_admin "https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp"
click node_employee "https://github.com/thanu-san/project-employee-management-system/blob/main/src/Employee.cpp"
click node_employee_self "https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp"
click node_attendance "https://github.com/thanu-san/project-employee-management-system/blob/main/src/Attendance.cpp"
click node_reports "https://github.com/thanu-san/project-employee-management-system/blob/main/src/Report.cpp"
click node_employee_csv "https://github.com/thanu-san/project-employee-management-system/blob/main/data/employees.csv"
click node_attendance_csv "https://github.com/thanu-san/project-employee-management-system/blob/main/data/Attendance.csv"
click node_reports_csv "https://github.com/thanu-san/project-employee-management-system/blob/main/data/Reports.csv"
click node_backups "https://github.com/thanu-san/project-employee-management-system/tree/main/data/backups"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_manager,node_user toneBlue
class node_admin,node_employee toneAmber
class node_employee_self toneMint
class node_attendance,node_reports,node_employee_csv,node_attendance_csv,node_reports_csv,node_backups toneRose
```

## Components

### Application and access

- [Program entry](https://github.com/thanu-san/project-employee-management-system/blob/main/src/main.cpp): `src/main.cpp`
- [Manager workflows](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp): `src/Manager.cpp`

### Employee administration

- [Admin operations](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp): `src/Manager.cpp`
- [Employee records](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Employee.cpp): `src/Employee.cpp`

### Employee self-service

- [Employee self-service](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Manager.cpp): `src/Manager.cpp`

### Records and persistence

- [Attendance and pay](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Attendance.cpp): `src/Attendance.cpp`
- [Report records](https://github.com/thanu-san/project-employee-management-system/blob/main/src/Report.cpp): `src/Report.cpp`
- [Employee CSV](https://github.com/thanu-san/project-employee-management-system/blob/main/data/employees.csv): `data/employees.csv`
- [Attendance CSV](https://github.com/thanu-san/project-employee-management-system/blob/main/data/Attendance.csv): `data/Attendance.csv`
- [Reports CSV](https://github.com/thanu-san/project-employee-management-system/blob/main/data/Reports.csv): `data/Reports.csv`
- [Employee backups](https://github.com/thanu-san/project-employee-management-system/tree/main/data/backups): `data/backups`

### Other components

- **Console user**

## Connections

- Console user → Program entry: uses (evidence: `README.md`)
- Program entry → Manager workflows: creates and invokes (evidence: `src/main.cpp`)
- Manager workflows → Admin operations: offers admin menu (evidence: `README.md`)
- Manager workflows → Employee self-service: offers employee menu (evidence: `README.md`)
- Manager workflows → Employee records: manages records
- Manager workflows → Attendance and pay: manages attendance
- Manager workflows → Report records: manages reports
- Manager workflows → Employee CSV: loads and saves (evidence: `README.md`)
- Manager workflows → Attendance CSV: loads and saves (evidence: `README.md`)
- Manager workflows → Reports CSV: loads and saves (evidence: `src/Manager.cpp`)
- Manager workflows → Employee backups: backs up and restores (evidence: `README.md`)
