ComparatorLibs: Add stringify to hierarchy for easy printing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user