How sreesamanvithamanoorvadhoolas/studentdb works
StudentDB is a C++ student and course management application. A user operates a menu-driven console UI to create and browse students and courses, enroll students, search and update records, and import or export database data. The UI delegates record operations to an in-memory StudentDb, which owns student and course collections; course offerings have block and weekly variants, and enrollments link students to courses. The UI also supports generating student data through a remote service. Source excerpts show the main entry point, core models, database operations, and parts of the UI; some file-operation wiring is documented but not fully excerpted.
Main entry points: StudentDb.cpp In-memory database · SimpleUI.cpp Menu and operations · main.cpp Application entry · Student.cpp Student records
Components 12
Console interface
- Application entry
myCode/main.cpp - Menu and operations
myCode/SimpleUI.cpp
Student records
- Student records
myCode/Student.cpp - Address details
myCode/Address.cpp
Courses and enrollment
- Course model
myCode/Course.cpp - Block course
myCode/BlockCourse.cpp - Weekly course
myCode/WeeklyCourse.cpp - Enrollment
myCode/Enrollment.cpp
Data and integration
- In-memory database
myCode/StudentDb.cpp - Data file
- Student data service
Other components
- User
Connections 18
- User → Application entry: starts
myCode/main.cpp - Application entry → Menu and operations: runs
myCode/main.cpp - Application entry → In-memory database: creates
myCode/main.cpp - User → Menu and operations: uses
myCode/SimpleUI.cpp - Menu and operations → In-memory database: manages records
myCode/SimpleUI.cpp - In-memory database → Student records: creates and updates
myCode/StudentDb.cpp - In-memory database → Address details: creates
myCode/StudentDb.cpp - In-memory database → Block course: creates
myCode/StudentDb.cpp - In-memory database → Weekly course: creates
myCode/StudentDb.cpp - In-memory database → Enrollment: creates
myCode/StudentDb.cpp - Student records → Address details: holds
- Student records → Enrollment: holds
- Enrollment → Course model: references
- Block course → Course model: extends
- Weekly course → Course model: extends
- Menu and operations → Data file: reads from
myCode/SimpleUI.cpp - Menu and operations → Data file: writes to
- Menu and operations → Student data service: requests data
myCode/SimpleUI.cpp