#ifndef ERROR_COUNT_INFO_H #define ERROR_COUNT_INFO_H #include "ErrorInfo.h" struct ErrorCountInfo { ErrorCountInfo() : total(0) , fatal(0) {} ErrorCountInfo(size_t total, size_t fatal) : total(total) , fatal(fatal) {} ErrorCountInfo(const std::vector& errors) : total(0) , fatal(0) { for (const ErrorInfo& error : errors) { total++; if (error.fatal) { fatal++; } } } size_t total; size_t fatal; }; #endif // ERROR_COUNT_INFO_H