# joshihardika91-droid/pbl-t045 architecture

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

- Interactive diagram: https://gitdiagram.com/joshihardika91-droid/pbl-t045
- Repository: https://github.com/joshihardika91-droid/pbl-t045

## Overview

Hostel-Mate is a C++ hostel-record management program. Its visible runtime centers on admin authentication and attendance marking, while the student-facing code offers profile, leave, mess, complaint, and fee options. The README also describes room allocation, outing and gym timings, and broader fee and leave workflows; these are documented capabilities, but their implementations or connections are not established by the excerpts. File-based student records and logout logging are visible; attendance storage appears in memory. The excerpts show no complete integrated user-to-result flow, so unsupported links are omitted.

Main entry points: [`student.cpp`](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp) (Student dashboard), [`admin.cpp`](https://github.com/joshihardika91-droid/pbl-t045/blob/main/admin.cpp) (Attendance marking), [`complaint.cpp`](https://github.com/joshihardika91-droid/pbl-t045/blob/main/complaint.cpp) (Complaint submission), [`attendance.h`](https://github.com/joshihardika91-droid/pbl-t045/blob/main/attendance.h) (Attendance records model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and profiles"]
  node_admin_auth["Admin authentication<br/>[admin.cpp]"]
  node_user_registration["User registration<br/>[User.cpp]"]
  node_password_change["Password change<br/>[User.cpp]"]
  node_student_access["Student dashboard<br/>[student.cpp]"]
  node_student_profile["Student profile<br/>[student.cpp]"]
  node_student_records[("Student records<br/>[student.cpp]")]
end

subgraph group_records["Hostel records"]
  node_attendance_marking["Attendance marking<br/>[admin.cpp]"]
  node_attendance_lookup["Attendance lookup<br/>[student.cpp]"]
  node_attendance_model["Attendance records model<br/>[attendance.h]"]
  node_fee_management["Fee management<br/>[student.cpp]"]
  node_fee_operations["Fee operations<br/>[fee.cpp]"]
end

subgraph group_student_services["Student services"]
  node_complaint_submission["Complaint submission<br/>[complaint.cpp]"]
  node_complaint_management["Complaint management<br/>[complaint.cpp]"]
  node_leave["Leave handling"]
  node_room_allocation["Room allocation"]
end

subgraph group_information["Hostel information"]
  node_mess_information["Mess information<br/>[student.cpp]"]
  node_gym_outing["Gym and outing timings"]
end

node_admin_actor(("Admin"))
node_student_actor(("Student"))

node_admin_actor -->|"enters credentials"| node_admin_auth
node_admin_auth -->|"permits marking"| node_attendance_marking
node_student_actor -.->|"uses dashboard"| node_student_access
node_student_access -->|"invokes"| node_password_change
node_student_access -->|"invokes"| node_complaint_submission
node_student_access -->|"offers profile view"| node_student_profile
node_student_access -->|"offers attendance view"| node_attendance_lookup
node_student_access -->|"offers fee status"| node_fee_management
node_student_access -->|"offers schedule view"| node_mess_information
node_student_access -->|"offers leave application"| node_leave
node_student_access -->|"loads records"| node_student_records
node_student_access -.->|"supports registration"| node_user_registration
node_attendance_marking -.->|"supplies in-memory status"| node_attendance_lookup
node_attendance_model -.->|"models records"| node_attendance_marking
node_student_access -.->|"fee helper available"| node_fee_operations
node_student_actor -->|"submits complaint"| node_complaint_submission
node_complaint_management -.->|"records submission"| node_complaint_submission
node_student_actor -.->|"uses allocation"| node_room_allocation
node_student_actor -.->|"checks timings"| node_gym_outing

click node_admin_auth "https://github.com/joshihardika91-droid/pbl-t045/blob/main/admin.cpp"
click node_user_registration "https://github.com/joshihardika91-droid/pbl-t045/blob/main/User.cpp"
click node_password_change "https://github.com/joshihardika91-droid/pbl-t045/blob/main/User.cpp"
click node_student_access "https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp"
click node_student_profile "https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp"
click node_student_records "https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp"
click node_attendance_marking "https://github.com/joshihardika91-droid/pbl-t045/blob/main/admin.cpp"
click node_attendance_lookup "https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp"
click node_attendance_model "https://github.com/joshihardika91-droid/pbl-t045/blob/main/attendance.h"
click node_fee_management "https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp"
click node_fee_operations "https://github.com/joshihardika91-droid/pbl-t045/blob/main/fee.cpp"
click node_complaint_submission "https://github.com/joshihardika91-droid/pbl-t045/blob/main/complaint.cpp"
click node_complaint_management "https://github.com/joshihardika91-droid/pbl-t045/blob/main/complaint.cpp"
click node_mess_information "https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp"

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_admin_auth,node_user_registration,node_password_change,node_student_access,node_student_profile,node_student_records toneBlue
class node_attendance_marking,node_attendance_lookup,node_attendance_model,node_fee_management,node_fee_operations toneAmber
class node_complaint_submission,node_complaint_management,node_leave,node_room_allocation toneMint
class node_mess_information,node_gym_outing toneRose
class node_admin_actor,node_student_actor toneIndigo
```

## Components

### Access and profiles

- [Admin authentication](https://github.com/joshihardika91-droid/pbl-t045/blob/main/admin.cpp): `admin.cpp`
- [User registration](https://github.com/joshihardika91-droid/pbl-t045/blob/main/User.cpp): `User.cpp`
- [Password change](https://github.com/joshihardika91-droid/pbl-t045/blob/main/User.cpp): `User.cpp`
- [Student dashboard](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp): `student.cpp`
- [Student profile](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp): `student.cpp`
- [Student records](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp): `student.cpp`

### Hostel records

- [Attendance marking](https://github.com/joshihardika91-droid/pbl-t045/blob/main/admin.cpp): `admin.cpp`
- [Attendance lookup](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp): `student.cpp`
- [Attendance records model](https://github.com/joshihardika91-droid/pbl-t045/blob/main/attendance.h): `attendance.h`
- [Fee management](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp): `student.cpp`
- [Fee operations](https://github.com/joshihardika91-droid/pbl-t045/blob/main/fee.cpp): `fee.cpp`

### Student services

- [Complaint submission](https://github.com/joshihardika91-droid/pbl-t045/blob/main/complaint.cpp): `complaint.cpp`
- [Complaint management](https://github.com/joshihardika91-droid/pbl-t045/blob/main/complaint.cpp): `complaint.cpp`
- **Leave handling**
- **Room allocation**

### Hostel information

- [Mess information](https://github.com/joshihardika91-droid/pbl-t045/blob/main/student.cpp): `student.cpp`
- **Gym and outing timings**

### Other components

- **Admin**
- **Student**

## Connections

- Admin → Admin authentication: enters credentials (evidence: `admin.cpp`)
- Admin authentication → Attendance marking: permits marking (evidence: `admin.cpp`)
- Student → Student dashboard: uses dashboard (evidence: `README.md`)
- Student dashboard → Password change: invokes (evidence: `student.cpp`)
- Student dashboard → Complaint submission: invokes (evidence: `student.cpp`)
- Student dashboard → Student profile: offers profile view (evidence: `student.cpp`)
- Student dashboard → Attendance lookup: offers attendance view (evidence: `student.cpp`)
- Student dashboard → Fee management: offers fee status (evidence: `student.cpp`)
- Student dashboard → Mess information: offers schedule view (evidence: `student.cpp`)
- Student dashboard → Leave handling: offers leave application (evidence: `student.cpp`)
- Student dashboard → Student records: loads records (evidence: `student.cpp`)
- Student dashboard → User registration: supports registration (evidence: `README.md`)
- Attendance marking → Attendance lookup: supplies in-memory status
- Attendance records model → Attendance marking: models records
- Student dashboard → Fee operations: fee helper available (evidence: `fee.cpp`)
- Student → Complaint submission: submits complaint (evidence: `complaint.cpp`)
- Complaint management → Complaint submission: records submission (evidence: `complaint.cpp`)
- Student → Room allocation: uses allocation (evidence: `README.md`)
- Student → Gym and outing timings: checks timings (evidence: `README.md`)
