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
@@ -180,5 +180,18 @@ std::unique_ptr<cologex::Comparator> ComparatorApiManager::getNewComparatorInsta
return comparatorType->getNewInstance();
}
std::string ComparatorApiManager::stringifyLibs() const
{
std::string result;
for (const auto& lib : s.rsrc.libs)
{
if (!result.empty()) {
result += "\n";
}
result += lib->stringify();
}
return result;
}
} // namespace comparator_lib
} // namespace smo