SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 1 | #pragma once |
Sunny Srivastava | 6c71c9d | 2021-04-15 04:43:54 -0500 | [diff] [blame] | 2 | #include "ibm_vpd_utils.hpp" |
SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 3 | |
| 4 | #include <string> |
| 5 | |
| 6 | namespace openpower |
| 7 | { |
| 8 | namespace vpd |
| 9 | { |
| 10 | namespace utils |
| 11 | { |
| 12 | namespace interface |
| 13 | { |
| 14 | |
| 15 | class UtilityInterface |
| 16 | { |
| 17 | public: |
Patrick Williams | c78d887 | 2023-05-10 07:50:56 -0500 | [diff] [blame] | 18 | virtual ~UtilityInterface() {} |
SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 19 | |
| 20 | virtual std::string readBusProperty(const std::string& obj, |
| 21 | const std::string& inf, |
| 22 | const std::string& prop) = 0; |
| 23 | }; |
| 24 | |
| 25 | class utility : public UtilityInterface |
| 26 | { |
| 27 | public: |
Patrick Williams | c78d887 | 2023-05-10 07:50:56 -0500 | [diff] [blame] | 28 | virtual ~utility() {} |
SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 29 | |
| 30 | std::string readBusProperty(const std::string& obj, const std::string& inf, |
| 31 | const std::string& prop) override |
| 32 | { |
Santosh Puranik | 16c634f | 2020-07-28 11:10:27 +0530 | [diff] [blame] | 33 | return openpower::vpd::readBusProperty(obj, inf, prop); |
SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 34 | } |
| 35 | }; |
| 36 | |
| 37 | } // namespace interface |
| 38 | } // namespace utils |
| 39 | } // namespace vpd |
| 40 | } // namespace openpower |