# atharvagupta0/smart-campus-parking-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/atharvagupta0/smart-campus-parking-management-system
- Repository: https://github.com/atharvagupta0/smart-campus-parking-management-system

## Overview

This is a compact C17 console application for campus vehicle registration, parking allocation, entry/exit tracking, billing, status and statistics, plus a live terminal campus map. The main menu is the user-facing entry point; parking operations update in-memory vehicle, slot and session state, while persistence restores and saves that state. Registration validation and map rendering are distinct capabilities. Edges reflect the README and shown source references; some menu-handler calls are outside the excerpts, so those documented links cite the README.

Main entry points: [`Smart Campus Parking Management System/Codes/main.c`](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/main.c) (Menu and Workflows), [`Smart Campus Parking Management System/Codes/parking.c`](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/parking.c) (Parking Operations), [`Smart Campus Parking Management System/Codes/storage.c`](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/storage.c) (Binary Persistence), [`Smart Campus Parking Management System/Codes/map.c`](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/map.c) (Live Campus Map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Console Interface"]
  node_console["Menu and Workflows<br/>[main.c]"]
end

subgraph group_domain["Parking Domain"]
  node_parking["Parking Operations<br/>[parking.c]"]
  node_model["Shared Data Model<br/>[parking.h]"]
end

subgraph group_support["Validation and Map"]
  node_plate_validation["Plate and ID Validation<br/>[registration.c]"]
  node_campus_map["Live Campus Map<br/>[map.c]"]
end

subgraph group_persistence["Persistence"]
  node_storage["Binary Persistence<br/>[storage.c]"]
  node_save_file[("Parking Save File<br/>[parking.dat]")]
end

node_operator(("Operator"))

node_operator -->|"selects menu actions"| node_console
node_console -->|"requests operations"| node_parking
node_console -->|"opens map"| node_campus_map
node_console -->|"loads at startup"| node_storage
node_parking -->|"normalizes registration"| node_plate_validation
node_parking -->|"saves state changes"| node_storage
node_storage -->|"reads and writes"| node_save_file
node_campus_map -->|"reads slot state"| node_model
node_parking -->|"updates domain state"| node_model

click node_console "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/main.c"
click node_parking "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/parking.c"
click node_model "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Header%20Files/parking.h"
click node_plate_validation "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/registration.c"
click node_campus_map "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/map.c"
click node_storage "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/storage.c"
click node_save_file "https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/data/parking.dat"

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_console toneBlue
class node_parking,node_model toneAmber
class node_plate_validation,node_campus_map toneMint
class node_storage,node_save_file toneRose
class node_operator toneIndigo
```

## Components

### Console Interface

- [Menu and Workflows](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/main.c): `Smart Campus Parking Management System/Codes/main.c`

### Parking Domain

- [Parking Operations](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/parking.c): `Smart Campus Parking Management System/Codes/parking.c`
- [Shared Data Model](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Header%20Files/parking.h): `Smart Campus Parking Management System/Header Files/parking.h`

### Validation and Map

- [Plate and ID Validation](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/registration.c): `Smart Campus Parking Management System/Codes/registration.c`
- [Live Campus Map](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/map.c): `Smart Campus Parking Management System/Codes/map.c`

### Persistence

- [Binary Persistence](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/Smart%20Campus%20Parking%20Management%20System/Codes/storage.c): `Smart Campus Parking Management System/Codes/storage.c`
- [Parking Save File](https://github.com/atharvagupta0/smart-campus-parking-management-system/blob/main/data/parking.dat): `data/parking.dat`

### Other components

- **Operator**

## Connections

- Operator → Menu and Workflows: selects menu actions (evidence: `README.md`)
- Menu and Workflows → Parking Operations: requests operations (evidence: `README.md`)
- Menu and Workflows → Live Campus Map: opens map (evidence: `README.md`)
- Menu and Workflows → Binary Persistence: loads at startup (evidence: `README.md`)
- Parking Operations → Plate and ID Validation: normalizes registration (evidence: `Smart Campus Parking Management System/Codes/parking.c`)
- Parking Operations → Binary Persistence: saves state changes (evidence: `Smart Campus Parking Management System/Codes/parking.c`)
- Binary Persistence → Parking Save File: reads and writes (evidence: `README.md`)
- Live Campus Map → Shared Data Model: reads slot state (evidence: `Smart Campus Parking Management System/Codes/map.c`)
- Parking Operations → Shared Data Model: updates domain state (evidence: `Smart Campus Parking Management System/Codes/parking.c`)
