How hasnainarefin/project-2-1-ambulance-management-system works
This is a terminal-based Khulna ambulance dispatch system. Users register or select a patient and request service; dispatch assigns an ambulance, routes it to the patient, selects a hospital, and records the completed trip. Administrators manage fleet, hospitals, accounts, and city analytics. The graph, queues, and record collections are in-memory; main.cpp loads and saves records as plain-text files. Relationships are limited to calls and data use visible in excerpts or explicitly documented by source comments; unsampled menu and storage details are not inferred.
Main entry points: app_menu.cpp Application menus · dispatch.cpp Trip dispatch · fleet_hospitals.cpp Ambulance fleet · main.cpp Saved records
Components 15
User interaction
- Application menus
app_menu.cpp
Dispatch operations
- Trip dispatch
dispatch.cpp - Request queues
requests.cpp
City and routing
- Road network
city_graph.cpp - Distance ranking and search
sort_search.cpp - BFS, DFS, zones
traversal.cpp - Map and animation
map_view.cpp
Records and persistence
- Ambulance fleet
fleet_hospitals.cpp - Hospital records
fleet_hospitals.cpp - Patients and accounts
hash_tables.cpp - Trip and action history
trip_history.cpp - Saved records
main.cpp - Shared records and utilities
common.cpp
Other components
- User
- Administrator
Connections 27
- User → Application menus: uses
- Administrator → Application menus: uses
- Application menus → Trip dispatch: starts dispatch
app_menu.cpp - Application menus → Request queues: manages requests
app_menu.cpp - Application menus → Patients and accounts: manages accounts
app_menu.cpp - Trip dispatch → Ambulance fleet: assigns ambulance
dispatch.cpp - Trip dispatch → Hospital records: selects hospital
dispatch.cpp - Trip dispatch → Map and animation: animates route
dispatch.cpp - Trip dispatch → Trip and action history: logs completed trip
dispatch.cpp - Trip dispatch → Road network: computes routes
dispatch.cpp - Ambulance fleet → Road network: ranks by distance
fleet_hospitals.cpp - Ambulance fleet → Distance ranking and search: sorts distances
fleet_hospitals.cpp - Ambulance fleet → BFS, DFS, zones: checks reachability
fleet_hospitals.cpp - Map and animation → Road network: renders roads
map_view.cpp - Road network → Shared records and utilities: uses shared definitions
city_graph.cpp - Patients and accounts → Shared records and utilities: uses shared records
hash_tables.cpp - Request queues → Shared records and utilities: uses shared utilities
requests.cpp - Trip and action history → Distance ranking and search: sorts trip report
trip_history.cpp - Application menus → BFS, DFS, zones: offers city analytics
app_menu.cpp - Application menus → Map and animation: shows city map
app_menu.cpp - Application menus → Distance ranking and search: searches locations
app_menu.cpp - Saved records → Ambulance fleet: loads and saves
main.cpp - Saved records → Hospital records: loads and saves
main.cpp - Saved records → Patients and accounts: loads and saves
main.cpp - Saved records → Trip and action history: loads and saves
main.cpp - Application menus → Ambulance fleet: manages fleet
app_menu.cpp - Application menus → Hospital records: manages hospitals
app_menu.cpp