ComparatorLibs: Add stringify to hierarchy for easy printing
This commit is contained in:
@@ -54,6 +54,8 @@ public:
|
||||
const std::shared_ptr<cologex::ExportedComparatorTypeDesc>&
|
||||
comparatorType);
|
||||
|
||||
std::string stringifyLibs() const;
|
||||
|
||||
public:
|
||||
sscl::SharedResourceGroup<sscl::co::CoQutex, Resources> s;
|
||||
|
||||
|
||||
@@ -42,6 +42,15 @@ public:
|
||||
comparatorLibDesc = desc;
|
||||
}
|
||||
|
||||
std::string stringify() const
|
||||
{
|
||||
std::string result = "Library Path: "
|
||||
+ loadedSharedLibrary->libraryPath + "\n";
|
||||
result += "Comparator Library Descriptor: "
|
||||
+ comparatorLibDesc.stringify();
|
||||
return result;
|
||||
}
|
||||
|
||||
public:
|
||||
std::shared_ptr<loadable_lib::LoadableLibraryManager::LoadedSharedLibrary>
|
||||
loadedSharedLibrary;
|
||||
|
||||
@@ -42,6 +42,16 @@ public:
|
||||
{
|
||||
return dlopenHandle.get();
|
||||
}
|
||||
|
||||
std::string stringify() const
|
||||
{
|
||||
std::string result = "Library Path: " + libraryPath + "\n";
|
||||
result += "Resolved Path: " + resolvedPath + "\n";
|
||||
result += "Is Being Destroyed: ";
|
||||
result += (isBeingDestroyed.load() ? "true" : "false");
|
||||
result += "\n";
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
struct Resources
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
{
|
||||
std::string result = "Library Path: "
|
||||
+ loadedSharedLibrary->libraryPath + "\n";
|
||||
result += "Stim Buff API Descriptor: " + stimBuffApiDesc.stringify() + "\n";
|
||||
result += "Stim Buff API Descriptor: " + stimBuffApiDesc.stringify();
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user