ComparatorLibs: Add stringify to hierarchy for easy printing

This commit is contained in:
2026-06-10 22:43:39 -04:00
parent 549f0c04f4
commit 82b99e680c
10 changed files with 91 additions and 7 deletions
+10
View File
@@ -3,6 +3,8 @@
#include <cstdint>
#include <memory>
#include <sstream>
#include <string>
#include <mentalEntity.h>
#include <user/logic.h>
@@ -43,6 +45,14 @@ struct ComparatorTypeId
{
return !(*this == other);
}
std::string stringify() const
{
std::ostringstream result;
result << std::hex << std::showbase;
result << "vendorId=" << vendorId << " typeId=" << typeId;
return result.str();
}
};
class Comparator