regulators: Add hardware presence service

The regulators application needs to determine whether hardware is
present or absent.  Some voltage regulators are optional, and
configuration should only be performed if the regulator is present.

Add a new class to obtain hardware presence data from the D-Bus
xyz.openbmc_project.Inventory.Item interface.

Also define an abstract base class and a mock implementation to enable
use of gmock in test cases related to hardware presence.

Tested:
* Tested where inventory path is present
* Tested where inventory path is not present
* Tested where inventory path is invalid and results in an exception
* Verified that mock implementation could be used in a gmock test case
* Full test plan available at
  https://gist.github.com/smccarney/2b6ea6ecbbeaf5a8b1793e2321799972

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Ia25a92815efc506c3ef4ac72844c17120c4ce9b7
diff --git a/phosphor-regulators/src/meson.build b/phosphor-regulators/src/meson.build
index b20e0bd..bfcacb1 100644
--- a/phosphor-regulators/src/meson.build
+++ b/phosphor-regulators/src/meson.build
@@ -15,6 +15,7 @@
     'id_map.cpp',
     'journal.cpp',
     'pmbus_utils.cpp',
+    'presence_service.cpp',
     'rail.cpp',
     'sensor_monitoring.cpp',
     'system.cpp',