How rektive/restaurantproject works
This is a command-line restaurant POS and ordering system. Its main workflow loads food and drink records, presents selectable menus, captures item sizes and food instructions, and adds configured items to a bill; bill output includes subtotal, tax, and total, and reset saves a numbered receipt. Food and Drink specialize a shared Billable interface, while Menu and Utils support selection and input validation. The graph reflects the README’s documented capabilities; the sampled source does not show a production application entry point, so initiating interaction is represented as a terminal user.
Main entry points: Ordering.cpp Ordering engine · Menu.cpp Interactive menus · Food.cpp Food items · Drink.cpp Drink items
Components 10
Ordering and billing
- Ordering engine
Ordering.cpp - Numbered receipts
Menu and catalog
- Interactive menus
Menu.cpp - Food CSV data
foods.csv - Drink CSV data
drinks.csv
Billable items
- Food items
Food.cpp - Drink items
Drink.cpp - Billable interface
Billable.h
Input support
- Input and utilities
Utils.cpp
Other components
- Terminal user
Connections 10
- Terminal user → Ordering engine: initiates ordering
- Ordering engine → Food CSV data: reads records
- Ordering engine → Drink CSV data: reads records
- Ordering engine → Food items: loads and configures
- Ordering engine → Drink items: loads and configures
- Ordering engine → Interactive menus: presents selections
- Interactive menus → Input and utilities: validates input
- Ordering engine → Numbered receipts: writes numbered bills
- Food items → Billable interface: extends
- Drink items → Billable interface: extends