From d1eac88d18ae7dd11033dba87b6aebb220da9064 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Thu, 29 Mar 2018 10:34:05 -0400 Subject: Enable clang-format Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop --- src/event_manager.hpp | 61 ++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) (limited to 'src/event_manager.hpp') diff --git a/src/event_manager.hpp b/src/event_manager.hpp index 7184852..a177739 100644 --- a/src/event_manager.hpp +++ b/src/event_manager.hpp @@ -17,38 +17,35 @@ namespace events */ class Manager { - public: - Manager() = default; - Manager(const Manager&) = delete; - Manager& operator=(const Manager&) = delete; - Manager(Manager&&) = default; - Manager& operator=(Manager&&) = default; - virtual ~Manager() = default; - - /** @brief Create the D-Bus Event object. - * @detail Add the objectPath,propertyName, propertyValue - * as additional data of the event object. - * @param[in] eventName - Name of the event. - * @param[in] eventMessage - Message for the event. - * @param[in] objectPath - Path of the D-Bus object. - * @param[in] propertyName - Name of the property. - * @param[in] propertyValue - Value of the property. - */ - void create( - const std::string& eventName, - const std::string& eventMessage, - const std::string& objectPath, - const std::string& propertyName, - const std::string& propertyValue); - - private: - using EventName = std::string; - /** @brief Queue of events */ - using EventQueue = std::queue>; - - using EventMap = std::map; - /** @brief Map of event name and the list of events **/ - EventMap eventMap; + public: + Manager() = default; + Manager(const Manager&) = delete; + Manager& operator=(const Manager&) = delete; + Manager(Manager&&) = default; + Manager& operator=(Manager&&) = default; + virtual ~Manager() = default; + + /** @brief Create the D-Bus Event object. + * @detail Add the objectPath,propertyName, propertyValue + * as additional data of the event object. + * @param[in] eventName - Name of the event. + * @param[in] eventMessage - Message for the event. + * @param[in] objectPath - Path of the D-Bus object. + * @param[in] propertyName - Name of the property. + * @param[in] propertyValue - Value of the property. + */ + void create(const std::string& eventName, const std::string& eventMessage, + const std::string& objectPath, const std::string& propertyName, + const std::string& propertyValue); + + private: + using EventName = std::string; + /** @brief Queue of events */ + using EventQueue = std::queue>; + + using EventMap = std::map; + /** @brief Map of event name and the list of events **/ + EventMap eventMap; }; Manager& getManager(); -- cgit v1.2.1