Find a policy entry and create the Policy object

Find an entry in the policy table based on the error
log entry's properties, and create and save the
sdbusplus object for it.

Change-Id: Ifc09059169b5faedb4eae74a76d59847d7b2868b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/policy_find.hpp b/policy_find.hpp
new file mode 100644
index 0000000..7dd415a
--- /dev/null
+++ b/policy_find.hpp
@@ -0,0 +1,33 @@
+#pragma once
+
+#include "dbus.hpp"
+#include "policy_table.hpp"
+
+namespace ibm
+{
+namespace logging
+{
+namespace policy
+{
+
+constexpr auto EIDField = 0;
+constexpr auto MsgField = 1;
+using PolicyProps = std::tuple<std::string, std::string>;
+
+/**
+ * Finds the policy table details based on the properties
+ * in the xyz.openbmc_project.Logging.Entry interface.
+ *
+ * @param[in] policy - the policy table object
+ * @param[in] errorLogProperties - the map of the error log
+ *            properties for the xyz.openbmc_project.Logging.Entry
+ *            interface
+ * @return PolicyProps - a tuple of policy details.
+ */
+PolicyProps find(
+        const Table& policy,
+        const DbusPropertyMap& errorLogProperties);
+
+}
+}
+}