control: Add a parameter store to Manager
Add a map of names to PropertyVariantValues to the Manager class that
actions can set and read. This allows one action to use a value from
this parameter map that another action has previously set.
A future use of this is to store a throttle temperature that has to be
calculated, which net_target_increase can then use to make decisions on.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ibefb97ed667d6b19ce71113d13efe08a1d3ff81f
diff --git a/control/json/manager.cpp b/control/json/manager.cpp
index 372fb78..d7e3b06 100644
--- a/control/json/manager.cpp
+++ b/control/json/manager.cpp
@@ -55,6 +55,7 @@
std::map<std::string,
std::map<std::string, std::map<std::string, PropertyVariantType>>>
Manager::_objects;
+std::unordered_map<std::string, PropertyVariantType> Manager::_parameters;
Manager::Manager(const sdeventplus::Event& event) :
_bus(util::SDBusPlus::getBus()), _event(event),