blob: 086f510bc7286e43fa4814fd987308a60d006b28 [file] [log] [blame]
#pragma once
#include "utils.hpp"
#include <string>
namespace openpower
{
namespace vpd
{
namespace utils
{
namespace interface
{
class UtilityInterface
{
public:
virtual ~UtilityInterface()
{
}
virtual std::string readBusProperty(const std::string& obj,
const std::string& inf,
const std::string& prop) = 0;
};
class utility : public UtilityInterface
{
public:
virtual ~utility()
{
}
std::string readBusProperty(const std::string& obj, const std::string& inf,
const std::string& prop) override
{
return openpower::vpd::readBusProperty(obj, inf, prop);
}
};
} // namespace interface
} // namespace utils
} // namespace vpd
} // namespace openpower