Update dump manager and entry to have multiple types
Created a base dump entry, who ever implementing a new
dump type need to inherit from the base dump entry.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: Ie85d393f75ec697a7b02b84d131a4a8c0116c3e7
diff --git a/dump_manager.cpp b/dump_manager.cpp
index 9a8d0f4..accd0da 100644
--- a/dump_manager.cpp
+++ b/dump_manager.cpp
@@ -2,6 +2,7 @@
#include "dump_manager.hpp"
+#include "bmc_dump_entry.hpp"
#include "dump_internal.hpp"
#include "xyz/openbmc_project/Common/error.hpp"
#include "xyz/openbmc_project/Dump/Create/error.hpp"
@@ -113,10 +114,10 @@
// Entry Object path.
auto objPath = fs::path(OBJ_ENTRY) / std::to_string(id);
- entries.insert(std::make_pair(
- id,
- std::make_unique<Entry>(bus, objPath.c_str(), id, stoull(msString),
- fs::file_size(file), file, *this)));
+ entries.insert(
+ std::make_pair(id, std::make_unique<bmc::Entry>(
+ bus, objPath.c_str(), id, stoull(msString),
+ fs::file_size(file), file, *this)));
}
catch (const std::invalid_argument& e)
{