# hxjaber/bank-management-system-v2 architecture

> Architecture diagram of the GitHub repository hxjaber/bank-management-system-v2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hxjaber/bank-management-system-v2
- Repository: https://github.com/hxjaber/bank-management-system-v2

## Overview

This is a single-file C++ console banking application. Users sign in (with first-run Admin setup), then permissions govern access to client, transaction, and user-management screens; changes persist to delimited files. The graph separates those domain areas from shared record/input handling. The source excerpt is partial, so some capability relationships rely on README documentation rather than inspected call sites; Users.txt is documented as a runtime-created file and is absent from the tree.

Main entry points: [`main.cpp`](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp) (Menu dispatch), [`Clients.txt`](https://github.com/hxjaber/bank-management-system-v2/blob/main/Clients.txt) (Client file)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_first_run["Admin setup<br/>[main.cpp]"]
  node_login["Login<br/>[main.cpp]"]
  node_permission_gate["Permission checks<br/>[main.cpp]"]
  node_menu_dispatch["Menu dispatch<br/>[main.cpp]"]
end

subgraph group_banking["Banking operations"]
  node_client_management["Client management<br/>[main.cpp]"]
  node_transactions["Transactions<br/>[main.cpp]"]
  node_user_management["User management<br/>[main.cpp]"]
end

subgraph group_shared["Shared data handling"]
  node_client_records["Client records<br/>[main.cpp]"]
  node_user_records["User records<br/>[main.cpp]"]
  node_record_codec["Record parsing<br/>[main.cpp]"]
  node_client_store[("Client file<br/>[Clients.txt]")]
  node_user_store[("User file")]
end

node_operator(("Bank operator"))

node_operator -->|"signs in"| node_login
node_login -->|"sets up if needed"| node_first_run
node_login -->|"authenticates"| node_permission_gate
node_permission_gate -->|"authorizes"| node_menu_dispatch
node_menu_dispatch -->|"opens"| node_client_management
node_menu_dispatch -->|"opens"| node_transactions
node_menu_dispatch -->|"opens"| node_user_management
node_client_management -->|"updates"| node_client_records
node_transactions -->|"changes balances"| node_client_records
node_user_management -->|"manages"| node_user_records
node_client_records -->|"serializes"| node_record_codec
node_user_records -->|"serializes"| node_record_codec
node_client_records -->|"loads and saves"| node_client_store
node_user_records -->|"loads and saves"| node_user_store

click node_first_run "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_login "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_permission_gate "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_menu_dispatch "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_client_management "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_transactions "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_user_management "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_client_records "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_user_records "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_record_codec "https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp"
click node_client_store "https://github.com/hxjaber/bank-management-system-v2/blob/main/Clients.txt"

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_first_run,node_login,node_permission_gate,node_menu_dispatch toneBlue
class node_client_management,node_transactions,node_user_management toneAmber
class node_client_records,node_user_records,node_record_codec,node_client_store,node_user_store toneMint
class node_operator toneIndigo
```

## Components

### Access and navigation

- [Admin setup](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [Login](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [Permission checks](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [Menu dispatch](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`

### Banking operations

- [Client management](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [Transactions](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [User management](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`

### Shared data handling

- [Client records](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [User records](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [Record parsing](https://github.com/hxjaber/bank-management-system-v2/blob/main/main.cpp): `main.cpp`
- [Client file](https://github.com/hxjaber/bank-management-system-v2/blob/main/Clients.txt): `Clients.txt`
- **User file**

### Other components

- **Bank operator**

## Connections

- Bank operator → Login: signs in (evidence: `README.md`)
- Login → Admin setup: sets up if needed (evidence: `README.md`)
- Login → Permission checks: authenticates (evidence: `README.md`)
- Permission checks → Menu dispatch: authorizes (evidence: `main.cpp`)
- Menu dispatch → Client management: opens (evidence: `main.cpp`)
- Menu dispatch → Transactions: opens (evidence: `main.cpp`)
- Menu dispatch → User management: opens (evidence: `main.cpp`)
- Client management → Client records: updates (evidence: `README.md`)
- Transactions → Client records: changes balances (evidence: `main.cpp`)
- User management → User records: manages (evidence: `README.md`)
- Client records → Record parsing: serializes (evidence: `main.cpp`)
- User records → Record parsing: serializes (evidence: `main.cpp`)
- Client records → Client file: loads and saves (evidence: `README.md`)
- User records → User file: loads and saves (evidence: `README.md`)
