# lokeshrathour30/student-accomodation-system architecture

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

- Interactive diagram: https://gitdiagram.com/lokeshrathour30/student-accomodation-system
- Repository: https://github.com/lokeshrathour30/student-accomodation-system

## Overview

This is a menu-driven C++ accommodation marketplace for students and property owners. The main workflow is browsing and filtering listings, viewing property details or recent views, and sending inquiries; owners can register and manage listings. The implementation is concentrated in one source file, so nodes represent runtime responsibilities rather than separate packages. The excerpts show the listing search, recent-view and inquiry structures, and some persistence calls; other feature links rely on the README’s description.

Main entry points: [`Student_Accommodation_System.cpp`](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp) (Menu application), [`accommodations.csv`](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/accommodations.csv) (Listing data), [`owners.csv`](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/owners.csv) (Owner data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application"]
  node_app["Menu application"]
end

subgraph group_student["Student features"]
  node_student_menu["Student menu"]
  node_search["Search and filter"]
  node_details["Property details"]
  node_recent["Recently viewed"]
  node_inquiry["Inquiries"]
end

subgraph group_owner["Owner features"]
  node_owner_menu["Owner management"]
  node_registration["Owner registration"]
  node_listing_management["Listing management"]
end

subgraph group_domain["Domain and state"]
  node_accommodation["Accommodation types"]
  node_listing_list["Listing linked list"]
  node_recent_stack["Recent stack"]
  node_inquiry_queue["Contact queue"]
end

subgraph group_persistence["CSV persistence"]
  node_listing_csv[("Listing data<br/>[accommodations.csv]")]
  node_owner_csv[("Owner data<br/>[owners.csv]")]
end

node_student_actor(("Student"))
node_owner_actor(("Property owner"))

node_student_actor -->|"uses"| node_app
node_owner_actor -->|"uses"| node_app
node_app -->|"offers"| node_student_menu
node_app -->|"offers"| node_owner_menu
node_student_menu -->|"searches"| node_search
node_student_menu -->|"views"| node_details
node_student_menu -->|"shows"| node_recent
node_student_menu -->|"submits"| node_inquiry
node_search -->|"filters"| node_listing_list
node_details -.->|"looks up"| node_listing_list
node_recent -->|"uses"| node_recent_stack
node_recent -->|"resolves IDs"| node_listing_list
node_inquiry -->|"enqueues"| node_inquiry_queue
node_owner_menu -->|"registers"| node_registration
node_owner_menu -->|"manages"| node_listing_management
node_listing_management -->|"updates"| node_listing_list
node_listing_list -->|"stores"| node_accommodation
node_app -->|"loads listings"| node_listing_csv
node_listing_management -->|"saves listings"| node_listing_csv
node_app -->|"loads accounts"| node_owner_csv
node_registration -->|"saves accounts"| node_owner_csv

click node_app "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_student_menu "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_search "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_details "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_recent "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_inquiry "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_owner_menu "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_registration "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_listing_management "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_accommodation "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_listing_list "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_recent_stack "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_inquiry_queue "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp"
click node_listing_csv "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/accommodations.csv"
click node_owner_csv "https://github.com/lokeshrathour30/student-accomodation-system/blob/main/owners.csv"

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_app toneBlue
class node_student_menu,node_search,node_details,node_recent,node_inquiry toneAmber
class node_owner_menu,node_registration,node_listing_management toneMint
class node_accommodation,node_listing_list,node_recent_stack,node_inquiry_queue toneRose
class node_listing_csv,node_owner_csv,node_student_actor,node_owner_actor toneIndigo
```

## Components

### Application

- [Menu application](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`

### Student features

- [Student menu](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Search and filter](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Property details](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Recently viewed](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Inquiries](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`

### Owner features

- [Owner management](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Owner registration](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Listing management](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`

### Domain and state

- [Accommodation types](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Listing linked list](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Recent stack](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`
- [Contact queue](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/Student_Accommodation_System.cpp): `Student_Accommodation_System.cpp`

### CSV persistence

- [Listing data](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/accommodations.csv): `accommodations.csv`
- [Owner data](https://github.com/lokeshrathour30/student-accomodation-system/blob/main/owners.csv): `owners.csv`

### Other components

- **Student**
- **Property owner**

## Connections

- Student → Menu application: uses (evidence: `README.md`)
- Property owner → Menu application: uses (evidence: `README.md`)
- Menu application → Student menu: offers (evidence: `README.md`)
- Menu application → Owner management: offers (evidence: `README.md`)
- Student menu → Search and filter: searches (evidence: `README.md`)
- Student menu → Property details: views (evidence: `README.md`)
- Student menu → Recently viewed: shows (evidence: `Student_Accommodation_System.cpp`)
- Student menu → Inquiries: submits (evidence: `Student_Accommodation_System.cpp`)
- Search and filter → Listing linked list: filters (evidence: `Student_Accommodation_System.cpp`)
- Property details → Listing linked list: looks up (evidence: `README.md`)
- Recently viewed → Recent stack: uses (evidence: `Student_Accommodation_System.cpp`)
- Recently viewed → Listing linked list: resolves IDs (evidence: `Student_Accommodation_System.cpp`)
- Inquiries → Contact queue: enqueues (evidence: `Student_Accommodation_System.cpp`)
- Owner management → Owner registration: registers (evidence: `README.md`)
- Owner management → Listing management: manages (evidence: `README.md`)
- Listing management → Listing linked list: updates (evidence: `Student_Accommodation_System.cpp`)
- Listing linked list → Accommodation types: stores (evidence: `Student_Accommodation_System.cpp`)
- Menu application → Listing data: loads listings (evidence: `Student_Accommodation_System.cpp`)
- Listing management → Listing data: saves listings (evidence: `Student_Accommodation_System.cpp`)
- Menu application → Owner data: loads accounts (evidence: `Student_Accommodation_System.cpp`)
- Owner registration → Owner data: saves accounts (evidence: `Student_Accommodation_System.cpp`)
