summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 601c002..d8f3fe4 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -71,6 +71,20 @@ class Zone
_properties[object][property] = value;
};
+ /**
+ * @brief Get the value of an object's property
+ *
+ * @param[in] object - Name of the object containing the property
+ * @param[in] property - Property name
+ *
+ * @return - The property value
+ */
+ inline auto getPropertyValue(const std::string& object,
+ const std::string& property)
+ {
+ return _properties[object][property];
+ };
+
private:
/**
@@ -126,7 +140,7 @@ class Zone
* @param[in] eventData - The event's data
*/
void handleEvent(sdbusplus::message::message& msg,
- const Handler& handler);
+ const EventData& eventData);
};
}
OpenPOWER on IntegriCloud