Sensors: Create utility class for sensors

Create a separate utility class for sensors. The goal is to make these
functions easily available for use outside of sensors for paths which
need reference sensors.

Moved splitSensorNameAndType() into new utility class.

Created new utility function getSensorId(). The Id for a sensor is
built from its name and type in a few different locations. These are
modified to call the new function. The function has also been
simplified to use std::format() to build the Id.

Tested:
 - Checked before and after results for queries using this function:
   (Note: I was not able to confirm the setSensorsOverride() caller as
    it is only being used for redfish-allow-deprecated-power-thermal
    URI.)
'''
   - https://${bmc}/redfish/v1/Chassis/chassis/Sensors
   - https://${bmc}/redfish/v1/Chassis/chassis/Sensors/<str>
     where <str> was sensors of different types
   - https://${bmc}/redfish/v1/Chassis/chassis/Sensors?\$expand=*
   - https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans
   - https://${bmc}/redfish/v1/Chassis/chassis/PowerSubsystem/PowerSupplies
'''
 - Redfish Validator passed

Change-Id: Ifa200b6e63f8e52d47f70c33d350999f5c527bbd
Signed-off-by: Janet Adkins <janeta@us.ibm.com>
diff --git a/meson.build b/meson.build
index 5a4ec87..37ee2ba 100644
--- a/meson.build
+++ b/meson.build
@@ -402,6 +402,7 @@
     'test/redfish-core/include/utils/ip_utils_test.cpp',
     'test/redfish-core/include/utils/json_utils_test.cpp',
     'test/redfish-core/include/utils/query_param_test.cpp',
+    'test/redfish-core/include/utils/sensor_utils_test.cpp',
     'test/redfish-core/include/utils/stl_utils_test.cpp',
     'test/redfish-core/include/utils/time_utils_test.cpp',
     'test/redfish-core/lib/chassis_test.cpp',
@@ -410,7 +411,6 @@
     'test/redfish-core/lib/manager_diagnostic_data_test.cpp',
     'test/redfish-core/lib/metadata_test.cpp',
     'test/redfish-core/lib/power_subsystem_test.cpp',
-    'test/redfish-core/lib/sensors_test.cpp',
     'test/redfish-core/lib/service_root_test.cpp',
     'test/redfish-core/lib/system_test.cpp',
     'test/redfish-core/lib/thermal_subsystem_test.cpp',