Promote getPath() to PMBusBase
Promote the getPath() method from the PMBus class to the PMBusBase
parent class. This allows the method to be called from automated tests
using mock subclasses of PMBusBase.
Change-Id: I01dc6c314294e0de8919f78c79cbdc395020728f
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/pmbus.hpp b/pmbus.hpp
index be352b6..ecf7377 100644
--- a/pmbus.hpp
+++ b/pmbus.hpp
@@ -181,6 +181,7 @@
virtual const fs::path& path() const = 0;
virtual std::string insertPageNum(const std::string& templateName,
size_t page) = 0;
+ virtual fs::path getPath(Type type) = 0;
};
/**
@@ -380,7 +381,7 @@
*
* @return fs::path - the full path
*/
- fs::path getPath(Type type);
+ fs::path getPath(Type type) override;
private:
/**