How bsse24017/niggaratoridk works
Project type and purpose
• This is a modular, console-based C++ application (Law Enforcement Management System – LEMS) that uses a menu-driven UI to manage five distinct subdomains: Officers, Crimes, Forensics, Patrol Vehicles, and Jail.
• It demonstrates key OOP concepts (inheritance, polymorphism, association, composition, aggregation, operator overloading, singletons) and persists data in JSON/text files via the nlohmann JSON library.
File structure
• Top-level files:
– main.cpp: entry point & CLI/menu router
– makefile: build script
– README.md
– JSON/text data files (crimes.json, officers.json, etc.)
• Module sources:
– {Officer, Crime, Forensics, PatrolVehicles, Jail}Module.cpp/.h
– ListTemplate.h (generic container template)
• Third-party library: nlohmann/json.hpp & json_fwd.hpp
• IDE configurations: .vs/, .vscode/
README for additional insights
• Modules correspond 1:1 with major subdomains; each uses inheritance hierarchies (e.g., SHO ← Officer, Theft ← Crime), singletons for centralized management, file I/O for persistence.
• Data folder is “data/” (though files sit in root here) for plain-text storage.