Add power-utils

The power-utils is added to support psu code manager as vendor-specifc
tool.
In this commit, the util returns the PSU version based on the PSU
inventory path, where the inventory path are mapped to the PSU sysfs
device directory based on a json config.

Tested: Verify the version is returned correctly on Witherspoon:
           $ ./psutils --getversion \
           /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
           01100110
        And it returns non-zero when it fails to get the version without
        throwing exception.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Ib60f3aa50ce581d55fe4cd62642f30398e25be83
diff --git a/tools/power-utils/version.hpp b/tools/power-utils/version.hpp
new file mode 100644
index 0000000..26f0ce6
--- /dev/null
+++ b/tools/power-utils/version.hpp
@@ -0,0 +1,30 @@
+/**
+ * Copyright © 2019 IBM Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#pragma once
+
+#include <string>
+
+namespace version
+{
+
+/**
+ * Get the software version of the PSU
+ *
+ * @param[in] psuInventoryPath - The inventory path of the PSU
+ */
+std::string getVersion(const std::string& psuInventoryPath);
+
+} // namespace version