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