SunnySrivastava1984 | e12b181 | 2020-05-26 02:23:11 -0500 | [diff] [blame] | 1 | #include "ipz_parser.hpp" |
| 2 | |
| 3 | #include "impl.hpp" |
| 4 | |
| 5 | namespace openpower |
| 6 | { |
| 7 | namespace vpd |
| 8 | { |
| 9 | namespace ipz |
| 10 | { |
| 11 | namespace parser |
| 12 | { |
| 13 | using namespace openpower::vpd::parser; |
| 14 | using namespace openpower::vpd::constants; |
| 15 | |
| 16 | std::variant<kwdVpdMap, Store> IpzVpdParser::parse() |
| 17 | { |
Sunny Srivastava | f31a91b | 2022-06-09 08:11:29 -0500 | [diff] [blame] | 18 | Impl p(vpd, inventoryPath); |
SunnySrivastava1984 | e12b181 | 2020-05-26 02:23:11 -0500 | [diff] [blame] | 19 | Store s = p.run(); |
| 20 | return s; |
| 21 | } |
| 22 | |
| 23 | void IpzVpdParser::processHeader() |
| 24 | { |
Sunny Srivastava | f31a91b | 2022-06-09 08:11:29 -0500 | [diff] [blame] | 25 | Impl p(vpd, inventoryPath); |
SunnySrivastava1984 | e12b181 | 2020-05-26 02:23:11 -0500 | [diff] [blame] | 26 | p.checkVPDHeader(); |
| 27 | } |
| 28 | |
| 29 | std::string IpzVpdParser::getInterfaceName() const |
| 30 | { |
| 31 | return ipzVpdInf; |
| 32 | } |
| 33 | |
| 34 | } // namespace parser |
| 35 | } // namespace ipz |
| 36 | } // namespace vpd |
| 37 | } // namespace openpower |