DevMgr: Move helper function to top

This commit is contained in:
2025-09-15 14:33:42 -04:00
parent 674d74cfb9
commit 19b39d391f
+15 -15
View File
@@ -23,6 +23,21 @@ std::vector<std::shared_ptr<DeviceAttachmentSpec>>
std::vector<std::shared_ptr<Device>>
DeviceManager::devices;
const std::string DeviceManager::stringifyDeviceSpecs(void)
{
std::ostringstream oss;
for (const auto& spec : DeviceManager::interoceptorDeviceSpecs) {
oss << "Interoceptor " << spec->stringify();
}
for (const auto& spec : DeviceManager::extrospectorDeviceSpecs) {
oss << "Extrospector " << spec->stringify();
}
return oss.str();
}
class DeviceManager::NewDeviceAttachmentSpecInd
: public TargetedAsynchronousContinuation<newDeviceAttachmentSpecIndCbFn>
{
@@ -121,21 +136,6 @@ public:
}
};
const std::string DeviceManager::stringifyDeviceSpecs(void)
{
std::ostringstream oss;
for (const auto& spec : DeviceManager::interoceptorDeviceSpecs) {
oss << "Interoceptor " << spec->stringify();
}
for (const auto& spec : DeviceManager::extrospectorDeviceSpecs) {
oss << "Extrospector " << spec->stringify();
}
return oss.str();
}
void DeviceManager::newDeviceAttachmentSpecInd(
std::shared_ptr<DeviceAttachmentSpec> spec,
newDeviceAttachmentSpecIndCbFn callback)