blob: bb4ee2f5024f5b33560fcac38e6f90bcc171d488 [file] [log] [blame]
SunnySrivastava1984e12b1812020-05-26 02:23:11 -05001#include "ipz_parser.hpp"
2
3#include "impl.hpp"
4
5namespace openpower
6{
7namespace vpd
8{
9namespace ipz
10{
11namespace parser
12{
13using namespace openpower::vpd::parser;
14using namespace openpower::vpd::constants;
15
16std::variant<kwdVpdMap, Store> IpzVpdParser::parse()
17{
girik18bb9852022-11-16 05:48:13 -060018 Impl p(vpd, inventoryPath, vpdFilePath, vpdStartOffset);
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050019 Store s = p.run();
20 return s;
21}
22
23void IpzVpdParser::processHeader()
24{
girik18bb9852022-11-16 05:48:13 -060025 Impl p(vpd, inventoryPath, vpdFilePath, vpdStartOffset);
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050026 p.checkVPDHeader();
27}
28
29std::string IpzVpdParser::getInterfaceName() const
30{
31 return ipzVpdInf;
32}
33
34} // namespace parser
35} // namespace ipz
36} // namespace vpd
Patrick Williamsc78d8872023-05-10 07:50:56 -050037} // namespace openpower