Moving some methods from threshold to utils

Two methods splitFileName and readFile seems to be more generic
and used not only by thresholds. Moving splitFileName and readFile
from the threshold namespace to utils.

Tested:
    Manual tests where done on CPUSensor. No differences detected
    comparing to results before these changes.

Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com>
Change-Id: I8ab58099eca740b6111a382f68f2ab32d7762a78
diff --git a/include/Utils.hpp b/include/Utils.hpp
index 224842c..28a2df3 100644
--- a/include/Utils.hpp
+++ b/include/Utils.hpp
@@ -230,3 +230,10 @@
     std::function<void(ManagedObjectType& resp)> callback;
     ManagedObjectType respData;
 };
+
+// The common scheme for sysfs files naming is: <type><number>_<item>.
+// This function returns optionally these 3 elements as a tuple.
+std::optional<std::tuple<std::string, std::string, std::string>>
+    splitFileName(const std::filesystem::path& filePath);
+std::optional<double> readFile(const std::string& thresholdFile,
+                               const double& scaleFactor);
\ No newline at end of file