Entry: Setup constructor

Persist the log manager dbus bus and create a
vector of Entry instances to store the Entry
dbus objects as they get created.

Change-Id: I4add43c4ce6795b6ec6c041e41cd7455d34b3b6b
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/log_manager.hpp b/log_manager.hpp
index 13e38d9..4ad0ced 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -1,6 +1,7 @@
 #pragma once
 
 #include <sdbusplus/bus.hpp>
+#include "elog_entry.hpp"
 #include "xyz/openbmc_project/Logging/Internal/Manager/server.hpp"
 
 namespace phosphor
@@ -38,7 +39,8 @@
          *  @param[in] path - Path to attach at.
          */
         Manager(sdbusplus::bus::bus& bus, const char* path) :
-                details::ServerObject<details::ManagerIface>(bus, path) {};
+                details::ServerObject<details::ManagerIface>(bus, path),
+                busLog(bus) {};
 
         /*
          * @fn commit()
@@ -51,6 +53,14 @@
          *                     error log to be committed.
          */
         void commit(uint64_t transactionId, std::string errMsg) override;
+
+
+    private:
+        /** @brief Persistent sdbusplus DBus bus connection. */
+        sdbusplus::bus::bus& busLog;
+
+        /** @brief Persistent map of Entry dbus objects and their ID */
+        std::map<uint32_t, std::unique_ptr<Entry>> entries;
 };
 
 } // namespace logging