Add shared DeviceAttachmentSpec param parsing helpers.

Centralize DAP param lookup, parsing, and validation primitives so stimBuff
and threshold modules can share one implementation instead of duplicating
parse logic per plugin.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-14 11:00:22 -04:00
parent 3e85b920fb
commit b198f6a42b
4 changed files with 731 additions and 40 deletions
@@ -0,0 +1,21 @@
add_executable(deviceAttachmentSpecParams_tests
deviceAttachmentSpecParams_tests.cpp
)
target_include_directories(deviceAttachmentSpecParams_tests PRIVATE
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}/libspinscale/tests
)
target_link_libraries(deviceAttachmentSpecParams_tests
gtest_main
spinscale_test_support
${Boost_LIBRARIES}
)
add_dependencies(deviceAttachmentSpecParams_tests gtest_main)
add_test(
NAME deviceAttachmentSpecParams_tests
COMMAND deviceAttachmentSpecParams_tests)