bmcweb: Implement SensorCollection

Add collection of all power and current sensors.

Testing: Verified SensorCollection and Sensor output
         on a Witherspoon system.
         Verified no errors from RedfishServiceValidator.

Change-Id: Icfdc14d738bf037d5d599a3c6fc0be5ea0919929
Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index ec6d0d7..2ca3dc7 100644
--- a/redfish-core/include/redfish.hpp
+++ b/redfish-core/include/redfish.hpp
@@ -28,6 +28,7 @@
 #include "../lib/power.hpp"
 #include "../lib/redfish_sessions.hpp"
 #include "../lib/roles.hpp"
+#include "../lib/sensors.hpp"
 #include "../lib/service_root.hpp"
 #include "../lib/systems.hpp"
 #include "../lib/thermal.hpp"
@@ -140,6 +141,9 @@
         nodes.emplace_back(std::make_unique<TrustStoreCertificate>(app));
         nodes.emplace_back(std::make_unique<SystemPCIeFunction>(app));
         nodes.emplace_back(std::make_unique<SystemPCIeDevice>(app));
+
+        nodes.emplace_back(std::make_unique<SensorCollection>(app));
+        nodes.emplace_back(std::make_unique<Sensor>(app));
         for (const auto& node : nodes)
         {
             node->initPrivileges();