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 { 37 return openpower::vpd::readBusProperty(obj, inf, prop); 38 } 39 }; 40 41 } // namespace interface 42 } // namespace utils 43 } // namespace vpd 44 } // namespace openpower 45