How sozahra/cpp-module-05 works
This repository is a sequence of C++ exercises that incrementally build a bureaucratic form-processing model: grade-checked bureaucrats, signable forms, executable form types, and finally an intern that creates forms by name. Each exercise has its own demo entry point. The supplied excerpts show the demos and interfaces; implementation-level links below are limited to relationships supported by the source index or those excerpts.
Main entry points: ex03/main.cpp Form factory demo · ex02/main.cpp Execution demo · Intern.cpp Form-making intern · AForm.cpp Abstract form
Components 19
Grade control
- Grade demo
ex00/main.cpp - Bureaucrat
ex00/Bureaucrat.cpp
Form signing
- Signing demo
ex01/main.cpp - Bureaucrat
ex01/Bureaucrat.cpp - Signable form
ex01/Form.cpp
Form execution
- Execution demo
ex02/main.cpp - Bureaucrat
ex02/Bureaucrat.cpp - Abstract form
ex02/AForm.cpp - Pardon form
ex02/PresidentialPardonForm.cpp - Robotomy form
ex02/RobotomyRequestForm.cpp - Shrubbery form
ex02/ShrubberyCreationForm.cpp
Form creation
- Form factory demo
ex03/main.cpp - Bureaucrat
ex03/Bureaucrat.cpp - Abstract form
ex03/AForm.cpp - Pardon form
ex03/PresidentialPardonForm.cpp - Robotomy form
ex03/RobotomyRequestForm.cpp - Shrubbery form
ex03/ShrubberyCreationForm.cpp - Form-making intern
ex03/Intern.cpp
Other components
- Demo operator
Connections 28
- Demo operator → Grade demo: runs
ex00/main.cpp - Grade demo → Bureaucrat: creates
ex00/main.cpp - Demo operator → Signing demo: runs
ex01/main.cpp - Signing demo → Bureaucrat: creates
ex01/main.cpp - Signing demo → Signable form: signs
ex01/main.cpp - Bureaucrat → Signable form: signs via
ex01/Bureaucrat.cpp - Demo operator → Execution demo: runs
ex02/main.cpp - Execution demo → Bureaucrat: creates
ex02/main.cpp - Execution demo → Pardon form: creates
ex02/main.cpp - Execution demo → Robotomy form: creates
ex02/main.cpp - Execution demo → Shrubbery form: creates
ex02/main.cpp - Bureaucrat → Abstract form: signs and executes
ex02/Bureaucrat.cpp - Pardon form → Abstract form: inherits
- Robotomy form → Abstract form: inherits
- Shrubbery form → Abstract form: inherits
- Demo operator → Form factory demo: runs
ex03/main.cpp - Form factory demo → Form-making intern: requests forms
ex03/main.cpp - Form-making intern → Pardon form: creates
ex03/Intern.cpp - Form-making intern → Robotomy form: creates
ex03/Intern.cpp - Form-making intern → Shrubbery form: creates
ex03/Intern.cpp - Form factory demo → Bureaucrat: creates
ex03/main.cpp - Bureaucrat → Abstract form: signs and executes
ex03/Bureaucrat.cpp - Form factory demo → Pardon form: signs and executes
ex03/main.cpp - Form factory demo → Robotomy form: signs and executes
ex03/main.cpp - Form factory demo → Shrubbery form: signs and executes
ex03/main.cpp - Pardon form → Abstract form: inherits
- Robotomy form → Abstract form: inherits
- Shrubbery form → Abstract form: inherits