Interface & Factory implementation for VPD Parsers
This commit abstracts the implementation logic of different parser.
A parser factory is implemented to provide instance of required
parser based on the type of vpd file needed to be parsed.
The interface should be derived to implement any further parser logic
related to vpd.
Status: This does not add any new function, so basic testing of
VPD parsing, VPD tool and writes was performed.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I3ce1a2d6b7e8d8984fd7800132e78ab8a9a21e56
diff --git a/const.hpp b/const.hpp
index 591043e..ac8dafe 100644
--- a/const.hpp
+++ b/const.hpp
@@ -66,6 +66,9 @@
using namespace std::string_literals;
constexpr auto pimPath = "/xyz/openbmc_project/inventory";
constexpr auto pimIntf = "xyz.openbmc_project.Inventory.Manager";
+constexpr auto kwdVpdInf = "com.ibm.ipzvpd.VINI";
+constexpr auto memVpdInf = "com.ibm.ipzvpd.VINI";
+constexpr auto ipzVpdInf = "com.ibm.ipzvpd.";
namespace lengths
{