20#include <fmt/format.h>
50 std::map<ErrorType, std::string> groupTypeNames{};
53 groupTypeNames.emplace(typeName);
56 return groupTypeNames;
63 return itName->second;
72 return itName->second;
81 return itDescription->second;
93 description += fmt::format(
" (DE {} pad {})",
id0,
id1);
96 description += fmt::format(
" (DE {})",
id0);
102 return description + fmt::format(
": seen {} time{}",
count,
count > 1 ?
"s" :
"");
definition of the MCH processing errors
GLint GLint GLsizei GLint GLenum GLenum type
constexpr ErrorGroup errorGroup(ErrorType error)
@ Tracking_TooManyCandidates
@ PreClustering_LostDigit
@ PreClustering_MultipleDigitsInSamePad
@ Clustering_TooManyLocalMaxima
static const std::map< ErrorType, std::string > typeNames
names of known error type
std::string getTypeDescription() const
uint32_t id1
additional descriptor used for certain error types
static const std::map< ErrorType, std::string > getTypeNames(ErrorGroup group)
std::string getGroupName() const
ErrorGroup getGroup() const
uint32_t id0
additional descriptor used for certain error types
std::string asString() const
static const std::map< ErrorType, std::string > typeDescriptions
descriptions of known error type
std::string getTypeName() const
static const std::map< ErrorGroup, std::string > groupNames
names of known error group