yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::DiagnosticReport Struct Reference

Complete diagnostic report. More...

#include <diagnostic_types.h>

Collaboration diagram for yaze::cli::DiagnosticReport:

Public Member Functions

void AddFinding (const DiagnosticFinding &finding)
 Add a finding and update counts.
 
bool HasProblems () const
 Check if report has any critical or error findings.
 
bool HasFixable () const
 Check if report has any fixable findings.
 
int TotalFindings () const
 Get total finding count.
 

Public Attributes

std::string rom_path
 
RomFeatures features
 
MapPointerStatus map_status
 
Tile16Status tile16_status
 
std::vector< DiagnosticFindingfindings
 
int info_count = 0
 
int warning_count = 0
 
int error_count = 0
 
int critical_count = 0
 
int fixable_count = 0
 

Detailed Description

Complete diagnostic report.

Definition at line 137 of file diagnostic_types.h.

Member Function Documentation

◆ AddFinding()

void yaze::cli::DiagnosticReport::AddFinding ( const DiagnosticFinding & finding)
inline

Add a finding and update counts.

Definition at line 154 of file diagnostic_types.h.

References critical_count, error_count, findings, yaze::cli::DiagnosticFinding::fixable, fixable_count, info_count, yaze::cli::kCritical, yaze::cli::kError, yaze::cli::kInfo, yaze::cli::kWarning, yaze::cli::DiagnosticFinding::severity, and warning_count.

Referenced by yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::CheckCommonSpriteIssues(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckCorruptionHeuristics(), yaze::cli::anonymous_namespace{message_doctor_commands.cc}::CheckCorruptionPatterns(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckParallelWorldsHeuristics(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::CheckSheetIntegrity(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::CheckTile16Corruption(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckZScreamHeuristics(), yaze::cli::MessageDoctorCommandHandler::Execute(), yaze::cli::OverworldDoctorCommandHandler::Execute(), yaze::cli::RomDoctorCommandHandler::Execute(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateBlocksets(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateCompression(), yaze::cli::anonymous_namespace{message_doctor_commands.cc}::ValidateControlCodes(), yaze::cli::anonymous_namespace{message_doctor_commands.cc}::ValidateDictionaryRefs(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::ValidateExpandedTables(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateGraphicsPointerTable(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::ValidateMapPointers(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateRoomSprites(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateSpritePointerTable(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateSpritesets(), and yaze::cli::anonymous_namespace{message_doctor_commands.cc}::ValidateTerminators().

◆ HasProblems()

◆ HasFixable()

bool yaze::cli::DiagnosticReport::HasFixable ( ) const
inline

Check if report has any fixable findings.

Definition at line 175 of file diagnostic_types.h.

References fixable_count.

Referenced by yaze::cli::OverworldDoctorCommandHandler::Execute().

◆ TotalFindings()

Member Data Documentation

◆ rom_path

std::string yaze::cli::DiagnosticReport::rom_path

◆ features

◆ map_status

◆ tile16_status

◆ findings

◆ info_count

◆ warning_count

◆ error_count

◆ critical_count

◆ fixable_count


The documentation for this struct was generated from the following file: