diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-04-10 14:15:53 -0500 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2017-04-26 12:48:32 -0500 |
commit | e10416eccd32893b68e7ec5fcaacc6520c014d4a (patch) | |
tree | 8986f5aeb86a1788e37c1022ef75633c43339578 /control/manager.hpp | |
parent | 48087591e350c013cfeb937ba8a87d0989374882 (diff) | |
download | phosphor-fan-presence-e10416eccd32893b68e7ec5fcaacc6520c014d4a.tar.gz phosphor-fan-presence-e10416eccd32893b68e7ec5fcaacc6520c014d4a.zip |
Fan control: Add Manager class and fan data
Create the fan manager class.
Check in the fan zone data as a normal file. In a future commit
this will be generated during the compile. It is required now
for review and so everything compiles.
Change-Id: I5733b81db80c5e072abdbffd42e335fa46c61ef8
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'control/manager.hpp')
-rw-r--r-- | control/manager.hpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/control/manager.hpp b/control/manager.hpp new file mode 100644 index 0000000..44f445e --- /dev/null +++ b/control/manager.hpp @@ -0,0 +1,55 @@ +#pragma once + +#include <memory> +#include <vector> +#include <sdbusplus/bus.hpp> +#include "types.hpp" + +namespace phosphor +{ +namespace fan +{ +namespace control +{ + +/** + * @class Fan control manager + */ +class Manager +{ + public: + + Manager() = delete; + Manager(const Manager&) = delete; + Manager(Manager&&) = default; + Manager& operator=(const Manager&) = delete; + Manager& operator=(Manager&&) = delete; + ~Manager() = default; + + /** + * Constructor + * Creates the Zone objects based on the + * _zoneLayouts data. + * + * @param[in] bus - The dbus object + */ + Manager(sdbusplus::bus::bus& bus); + + private: + + /** + * The dbus object + */ + sdbusplus::bus::bus& _bus; + + /** + * The fan zone layout for the system. + * This is generated data. + */ + static const std::vector<ZoneGroup> _zoneLayouts; +}; + + +} +} +} |