EntityManager: Clean up use of probeTypes

Remove the duplication by introducing findProbeType() to hide the map
definition.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I62704bac7aef6c6ea5d9f81aee429861b13cca6c
diff --git a/include/EntityManager.hpp b/include/EntityManager.hpp
index a79e7fe..a80b5f9 100644
--- a/include/EntityManager.hpp
+++ b/include/EntityManager.hpp
@@ -27,6 +27,7 @@
 
 #include <iostream>
 #include <list>
+#include <optional>
 #include <string>
 
 // paths - > interfaces -> properties
@@ -59,6 +60,11 @@
     MATCH_ONE
 };
 
+using FoundProbeTypeT =
+    std::optional<boost::container::flat_map<const char*, probe_type_codes,
+                                             CmpStr>::const_iterator>;
+FoundProbeTypeT findProbeType(const std::string& probe);
+
 struct PerformScan : std::enable_shared_from_this<PerformScan>
 {