blob: 086f510bc7286e43fa4814fd987308a60d006b28 [file] [log] [blame]
SunnySrivastava198497f8df02020-05-30 12:05:53 -05001#pragma once
2#include "utils.hpp"
3
4#include <string>
5
6namespace openpower
7{
8namespace vpd
9{
10namespace utils
11{
12namespace interface
13{
14
15class 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
27class 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 Puranik16c634f2020-07-28 11:10:27 +053037 return openpower::vpd::readBusProperty(obj, inf, prop);
SunnySrivastava198497f8df02020-05-30 12:05:53 -050038 }
39};
40
41} // namespace interface
42} // namespace utils
43} // namespace vpd
44} // namespace openpower