* removed paths in include directives * changed cmake to provide necessary header search paths * changed name of version.h to productVersion.h due to name conflict
38 lines
489 B
C++
38 lines
489 B
C++
#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<ErrorInfo>& 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
|