How amna-zahid14/all-clear works
AllClear is a C++17 file-safety scanner. A user starts a scan through the CLI or Windows Explorer integration; the application processes a file through local and optional reputation checks, classifies accumulated risk, records history, and quarantines malicious files. The graph preserves the README’s major detection, persistence, UI, and integration capabilities. Relationships are cited to the README or shown in the sampled composition-root declarations and source index; unsampled implementation details are not inferred.
Main entry points: FileController.cpp Scan controller · main.cpp CLI entry · ConcreteScanners.cpp Heuristic scanners · ScanHistory.cpp Scan history
Components 18
Entry and presentation
- CLI entry
src/main.cpp - Terminal dashboard
src/presentation/ui.cpp - Console view
src/presentation/ConsoleView.cpp - Signature reports
src/presentation/ReportPrinter.cpp
Detection and scoring
- Scan controller
src/core/FileController.cpp - File model
src/core/FileEntity.cpp - Scanner interface
src/scanners/Scanner.cpp - Heuristic scanners
src/scanners/ConcreteScanners.cpp - SHA-256 checksum
src/core/Checksum.cpp - User policy rules
src/scanners/ConcreteScanners.cpp - Risk classification
src/core/RiskScore.cpp
Persistence and response
- Signature database
src/persistence/SignatureDatabase.cpp - Scan history
src/persistence/ScanHistory.cpp - Quarantine vault
src/persistence/QuarantineManager.cpp
Platform integrations
- Explorer installer
src/platform/ContextMenuInstaller.cpp
Other components
- User
- Windows Explorer
- VirusTotal API
Connections 22
- User → CLI entry: starts scan
README.md - CLI entry → Terminal dashboard: shows dashboard
README.md - CLI entry → Scan controller: requests scan
src/main.cpp - Windows Explorer → CLI entry: launches scan
README.md - CLI entry → Explorer installer: registers shortcut
README.md - Scan controller → File model: models file
src/core/FileController.cpp - Scan controller → Scanner interface: dispatches scanners
- Heuristic scanners → Scanner interface: implements
- Scan controller → Heuristic scanners: runs checks
src/core/FileController.cpp - Heuristic scanners → SHA-256 checksum: computes hash
src/scanners/ConcreteScanners.cpp - Heuristic scanners → Signature database: matches signatures
- Heuristic scanners → Scan history: checks prior scans
- Heuristic scanners → User policy rules: evaluates policy
README.md - Scan controller → Risk classification: folds scores
- Risk classification → Scan controller: returns verdict
- Scan controller → Scan history: records scan
README.md - Scan controller → Quarantine vault: isolates malicious
- Scan controller → Console view: returns verdict
- CLI entry → Signature reports: prints signatures
src/main.cpp - Heuristic scanners → VirusTotal API: looks up hash
README.md - CLI entry → Signature database: manages records
src/main.cpp - CLI entry → Scan history: manages records
src/main.cpp