diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-05-11 15:00:36 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-05-31 10:55:48 -0500 |
commit | 17d1fe23b704cacb1cdd9b58156f354626b36f8c (patch) | |
tree | d448834a4cee7a2f71be26141431459f0808bd98 /control/zone.hpp | |
parent | 38a93a8aa2feea7f4e785db6b4ff6d9e81f6020d (diff) | |
download | phosphor-fan-presence-17d1fe23b704cacb1cdd9b58156f354626b36f8c.tar.gz phosphor-fan-presence-17d1fe23b704cacb1cdd9b58156f354626b36f8c.zip |
Add setting zone speed action
Enable an action to be defined that sets the zone to a given speed when
a number of properties are set to a given value
Change-Id: I5252a20a24bdb14dee63080f2c08b080c82ad7e8
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r-- | control/zone.hpp | 16 |
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); }; } |