From 19b39d391fa9e05c3868f2b58093a8ffab19def2 Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Mon, 15 Sep 2025 14:33:42 -0400 Subject: [PATCH] DevMgr: Move helper function to top --- smocore/deviceManager/deviceManager.cpp | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/smocore/deviceManager/deviceManager.cpp b/smocore/deviceManager/deviceManager.cpp index b8d0f42..f3687e7 100644 --- a/smocore/deviceManager/deviceManager.cpp +++ b/smocore/deviceManager/deviceManager.cpp @@ -23,6 +23,21 @@ std::vector> std::vector> 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 { @@ -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 spec, newDeviceAttachmentSpecIndCbFn callback)