How qingtian1927/prf192_assignment works
Masterchef Management Software is a command-line chef roster manager. Its workflow loads an optional chef file, presents interactive options, edits and searches the in-memory roster, displays results, and saves changes. The manager coordinates UI, list operations, chef records, and file persistence; date and string utilities support validation and normalization. README capabilities also include sorting and total-salary calculation. The excerpts establish several direct calls; some manager-to-subsystem paths are documented or inferred from the indexed imports, so uncertain links are dashed.
Main entry points: masterchefManager.c Manager · chefobject.c Chef Records · cheflist.c Chef Lists · database.c Chef File I/O
Components 8
Manager Workflow
- Manager
masterchefManager.c
Roster Domain
- Chef Records
libs/chefobject/chefobject.c - Chef Lists
libs/cheflist/cheflist.c
File Persistence
- Chef File I/O
libs/database/database.c
Terminal Interface
- Terminal UI
libs/userinterface/userinterface.c
Validation Utilities
- Date Validation
libs/dateparser/dateparser.c - String Formatting
libs/stringformat/stringformat.c
Other components
- Operator
Connections 14
- Operator → Manager: chooses options
README.md - Manager → Chef File I/O: loads roster
- Chef File I/O → Chef Lists: builds roster
- Chef File I/O → Chef Records: parses records
libs/database/database.c - Manager → Terminal UI: prompts and displays
- Terminal UI → Chef Lists: renders roster
libs/userinterface/userinterface.c - Manager → Chef Lists: manages roster
- Chef Lists → Chef Records: reads properties
libs/cheflist/cheflist.c - Manager → Chef Records: creates and edits
- Chef Records → Date Validation: validates dates
- Chef Records → String Formatting: normalizes fields
- Manager → Chef File I/O: saves roster
- Manager → Chef Lists: searches and sorts
- Chef Lists → Chef Records: calculates salary total
libs/cheflist/cheflist.c