Add a class to create FilePath DBus objects

bios-bmc-smm-error-logger creates JSON entries for CPER logs received
from BIOS. When a new CPER log is created, fault log service has to be
notified.

This adds the necessary classes for publishing file paths of the newly
created CPER logs to DBus.

Tested:
Tested this on a real machine.

Eg DBus objects:

`-/xyz
  `-/xyz/openbmc_project
    `-/xyz/openbmc_project/external_storer
      `-/xyz/openbmc_project/external_storer/bios_bmc_smm_error_logger
        `-/xyz/openbmc_project/external_storer/bios_bmc_smm_error_logger/CPER
          |-/xyz/openbmc_project/external_storer/bios_bmc_smm_error_logger/CPER/entry0
          |-/xyz/openbmc_project/external_storer/bios_bmc_smm_error_logger/CPER/entry1

Signed-off-by: Kasun Athukorala <kasunath@google.com>
Change-Id: I8c35243c949dfdc1254a758136d7a8e204f58bf5
diff --git a/src/rde/notifier_dbus_handler.cpp b/src/rde/notifier_dbus_handler.cpp
new file mode 100644
index 0000000..c7bf310
--- /dev/null
+++ b/src/rde/notifier_dbus_handler.cpp
@@ -0,0 +1,22 @@
+#include "rde/notifier_dbus_handler.hpp"
+
+namespace bios_bmc_smm_error_logger
+{
+namespace rde
+{
+
+CperFileNotifierHandler::CperFileNotifierHandler(sdbusplus::bus::bus& bus) :
+    bus(bus), objManager(bus, CperFileNotifier::cperBasePath)
+{}
+
+void CperFileNotifierHandler::createEntry(const std::string& filePath)
+{
+    auto obj = std::make_unique<CperFileNotifier>(bus, filePath, nextEntry);
+    // Notify fault log monitor through InterfacesAdded signal.
+    obj->emit_added();
+    notifierObjs.push_back(std::move(obj));
+    ++nextEntry;
+}
+
+} // namespace rde
+} // namespace bios_bmc_smm_error_logger