1 #pragma once
2 #include "ibm_vpd_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:
~UtilityInterface()18     virtual ~UtilityInterface() {}
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:
~utility()28     virtual ~utility() {}
29 
readBusProperty(const std::string & obj,const std::string & inf,const std::string & prop)30     std::string readBusProperty(const std::string& obj, const std::string& inf,
31                                 const std::string& prop) override
32     {
33         return openpower::vpd::readBusProperty(obj, inf, prop);
34     }
35 };
36 
37 } // namespace interface
38 } // namespace utils
39 } // namespace vpd
40 } // namespace openpower
41