SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | #include "utils.hpp" |
| 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: |
| 18 | virtual ~UtilityInterface() |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | virtual std::string readBusProperty(const std::string& obj, |
| 23 | const std::string& inf, |
| 24 | const std::string& prop) = 0; |
| 25 | }; |
| 26 | |
| 27 | class utility : public UtilityInterface |
| 28 | { |
| 29 | public: |
| 30 | virtual ~utility() |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | std::string readBusProperty(const std::string& obj, const std::string& inf, |
| 35 | const std::string& prop) override |
| 36 | { |
Santosh Puranik | 16c634f | 2020-07-28 11:10:27 +0530 | [diff] [blame] | 37 | return openpower::vpd::readBusProperty(obj, inf, prop); |
SunnySrivastava1984 | 97f8df0 | 2020-05-30 12:05:53 -0500 | [diff] [blame] | 38 | } |
| 39 | }; |
| 40 | |
| 41 | } // namespace interface |
| 42 | } // namespace utils |
| 43 | } // namespace vpd |
| 44 | } // namespace openpower |