regulators: Implements support for set_device action

Enhance the configuration file parser to support the set_device
action element.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: If9d1e25dc35370536fab9ab4ef7f2bf269e46d20
diff --git a/phosphor-regulators/src/config_file_parser.hpp b/phosphor-regulators/src/config_file_parser.hpp
index 771c699..e3f6bde 100644
--- a/phosphor-regulators/src/config_file_parser.hpp
+++ b/phosphor-regulators/src/config_file_parser.hpp
@@ -36,6 +36,7 @@
 #include "rule.hpp"
 #include "run_rule_action.hpp"
 #include "sensor_monitoring.hpp"
+#include "set_device_action.hpp"
 
 #include <nlohmann/json.hpp>
 
@@ -613,6 +614,18 @@
     parseSensorMonitoring(const nlohmann::json& element);
 
 /**
+ * Parses a JSON element containing a set_device action.
+ *
+ * Returns the corresponding C++ SetDeviceAction object.
+ *
+ * Throws an exception if parsing fails.
+ *
+ * @param element JSON element
+ * @return SetDeviceAction object
+ */
+std::unique_ptr<SetDeviceAction> parseSetDevice(const nlohmann::json& element);
+
+/**
  * Parses a JSON element containing a string.
  *
  * Returns the corresponding C++ string.