How irynaaksonkina/oop_1 works
This is a console-based ASCII shape-board editor. Users issue commands to add and inspect shapes, select them by ID or coordinates, then move, edit, paint, remove, clear, draw, save, or load the board. Board owns the shape collection and delegates drawing, hit-testing, editing, and serialization through the shape interface. The source excerpts show command handling, board behavior, and concrete shape implementations; no README capabilities are documented.
Main entry points: main.cpp Command loop · Shape.h Shape interface · Board.cpp Board · Rectangle.cpp Rectangle
Components 10
Command interface
- Command loop
main.cpp
Board operations
- Board
Board.cpp
Shape model
- Shape interface
Shape.h - Rectangle
Rectangle.cpp - Circle
Circle.cpp - Triangle
Triangle.cpp - Line
Line.cpp
Persistence
- Board file
Other components
- User
- Console
Connections 14
- User → Command loop: enters commands
- Command loop → Board: dispatches operations
- Command loop → Rectangle: creates
- Command loop → Circle: creates
- Command loop → Triangle: creates
- Command loop → Line: creates
- Command loop → Console: prints results
- Board → Console: prints drawing
- Board → Shape interface: calls shape behavior
- Rectangle → Shape interface: implements
- Circle → Shape interface: implements
- Triangle → Shape interface: implements
- Line → Shape interface: implements
- Board → Board file: reads and writes