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>
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;
+};
+
+
+}
+}
+}