diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-09-05 18:30:59 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-09-05 18:44:12 +0300 |
commit | 1abe55ef9844afcddcab9d862ae06118f3a2390c (patch) | |
tree | d0b5fcfd0b1cd679a8995af3eb0b6d31b368380e /redfish-core/include/redfish.hpp | |
parent | a38b0b206300c792979b900f506b85e535f5708a (diff) | |
download | bmcweb-1abe55ef9844afcddcab9d862ae06118f3a2390c.tar.xz |
Move to clang-format-6.0
This commit moves the codebase to the lastest clang-format file from
upstream, as well as clang-format-6.0.
Change-Id: Ice8313468097c0c42317fbb9e10ddf036e8cff4c
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/include/redfish.hpp')
-rw-r--r-- | redfish-core/include/redfish.hpp | 79 |
1 files changed, 42 insertions, 37 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index ab60abb90f..7f41b6339f 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -28,48 +28,53 @@ #include "../lib/update_service.hpp" #include "webserver_common.hpp" -namespace redfish { +namespace redfish +{ /* * @brief Top level class installing and providing Redfish services */ -class RedfishService { - public: - /* - * @brief Redfish service constructor - * - * Loads Redfish configuration and installs schema resources - * - * @param[in] app Crow app on which Redfish will initialize - */ - RedfishService(CrowApp& app) { - nodes.emplace_back(std::make_unique<AccountService>(app)); - nodes.emplace_back(std::make_unique<SessionCollection>(app)); - nodes.emplace_back(std::make_unique<Roles>(app)); - nodes.emplace_back(std::make_unique<RoleCollection>(app)); - nodes.emplace_back(std::make_unique<ServiceRoot>(app)); - nodes.emplace_back(std::make_unique<NetworkProtocol>(app)); - nodes.emplace_back(std::make_unique<SessionService>(app)); - nodes.emplace_back(std::make_unique<EthernetCollection>(app)); - nodes.emplace_back(std::make_unique<EthernetInterface>(app)); - nodes.emplace_back(std::make_unique<Thermal>(app)); - nodes.emplace_back(std::make_unique<ManagerCollection>(app)); - nodes.emplace_back(std::make_unique<Manager>(app)); - nodes.emplace_back(std::make_unique<ChassisCollection>(app)); - nodes.emplace_back(std::make_unique<Chassis>(app)); - nodes.emplace_back(std::make_unique<UpdateService>(app)); - nodes.emplace_back(std::make_unique<SoftwareInventoryCollection>(app)); - nodes.emplace_back(std::make_unique<SoftwareInventory>(app)); - nodes.emplace_back(std::make_unique<VlanNetworkInterfaceCollection>(app)); - nodes.emplace_back(std::make_unique<SystemsCollection>(app)); - nodes.emplace_back(std::make_unique<Systems>(app)); +class RedfishService +{ + public: + /* + * @brief Redfish service constructor + * + * Loads Redfish configuration and installs schema resources + * + * @param[in] app Crow app on which Redfish will initialize + */ + RedfishService(CrowApp& app) + { + nodes.emplace_back(std::make_unique<AccountService>(app)); + nodes.emplace_back(std::make_unique<SessionCollection>(app)); + nodes.emplace_back(std::make_unique<Roles>(app)); + nodes.emplace_back(std::make_unique<RoleCollection>(app)); + nodes.emplace_back(std::make_unique<ServiceRoot>(app)); + nodes.emplace_back(std::make_unique<NetworkProtocol>(app)); + nodes.emplace_back(std::make_unique<SessionService>(app)); + nodes.emplace_back(std::make_unique<EthernetCollection>(app)); + nodes.emplace_back(std::make_unique<EthernetInterface>(app)); + nodes.emplace_back(std::make_unique<Thermal>(app)); + nodes.emplace_back(std::make_unique<ManagerCollection>(app)); + nodes.emplace_back(std::make_unique<Manager>(app)); + nodes.emplace_back(std::make_unique<ChassisCollection>(app)); + nodes.emplace_back(std::make_unique<Chassis>(app)); + nodes.emplace_back(std::make_unique<UpdateService>(app)); + nodes.emplace_back(std::make_unique<SoftwareInventoryCollection>(app)); + nodes.emplace_back(std::make_unique<SoftwareInventory>(app)); + nodes.emplace_back( + std::make_unique<VlanNetworkInterfaceCollection>(app)); + nodes.emplace_back(std::make_unique<SystemsCollection>(app)); + nodes.emplace_back(std::make_unique<Systems>(app)); - for (auto& node : nodes) { - node->getSubRoutes(nodes); + for (auto& node : nodes) + { + node->getSubRoutes(nodes); + } } - } - private: - std::vector<std::unique_ptr<Node>> nodes; + private: + std::vector<std::unique_ptr<Node>> nodes; }; -} // namespace redfish +} // namespace redfish |