blob: 14c821c6454b72df639a0affcb8a51fafb1430d4 [file] [log] [blame]
SunnySrivastava198497f8df02020-05-30 12:05:53 -05001#pragma once
Sunny Srivastava6c71c9d2021-04-15 04:43:54 -05002#include "ibm_vpd_utils.hpp"
SunnySrivastava198497f8df02020-05-30 12:05:53 -05003
4#include <string>
5
6namespace openpower
7{
8namespace vpd
9{
10namespace utils
11{
12namespace interface
13{
14
15class UtilityInterface
16{
17 public:
Patrick Williamsc78d8872023-05-10 07:50:56 -050018 virtual ~UtilityInterface() {}
SunnySrivastava198497f8df02020-05-30 12:05:53 -050019
20 virtual std::string readBusProperty(const std::string& obj,
21 const std::string& inf,
22 const std::string& prop) = 0;
23};
24
25class utility : public UtilityInterface
26{
27 public:
Patrick Williamsc78d8872023-05-10 07:50:56 -050028 virtual ~utility() {}
SunnySrivastava198497f8df02020-05-30 12:05:53 -050029
30 std::string readBusProperty(const std::string& obj, const std::string& inf,
31 const std::string& prop) override
32 {
Santosh Puranik16c634f2020-07-28 11:10:27 +053033 return openpower::vpd::readBusProperty(obj, inf, prop);
SunnySrivastava198497f8df02020-05-30 12:05:53 -050034 }
35};
36
37} // namespace interface
38} // namespace utils
39} // namespace vpd
40} // namespace openpower