summaryrefslogtreecommitdiffstats
path: root/src/event_entry.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-29 10:34:05 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-29 10:34:46 -0400
commitd1eac88d18ae7dd11033dba87b6aebb220da9064 (patch)
tree9744e38138ff853c53868d847f86e9ad58e9ac66 /src/event_entry.hpp
parent1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96 (diff)
downloadphosphor-dbus-monitor-d1eac88d18ae7dd11033dba87b6aebb220da9064.tar.gz
phosphor-dbus-monitor-d1eac88d18ae7dd11033dba87b6aebb220da9064.zip
Enable clang-format
Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/event_entry.hpp')
-rw-r--r--src/event_entry.hpp66
1 files changed, 31 insertions, 35 deletions
diff --git a/src/event_entry.hpp b/src/event_entry.hpp
index 7be66d9..e39f1e2 100644
--- a/src/event_entry.hpp
+++ b/src/event_entry.hpp
@@ -13,8 +13,8 @@ namespace events
using namespace phosphor::dbus::monitoring;
-using EntryIface = sdbusplus::server::object::object <
- sdbusplus::xyz::openbmc_project::Logging::server::Event >;
+using EntryIface = sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::Logging::server::Event>;
/** @class Entry
* @brief OpenBMC Event entry implementation.
@@ -23,39 +23,35 @@ using EntryIface = sdbusplus::server::object::object <
*/
class Entry : public EntryIface
{
- public:
- Entry() = delete;
- Entry(const Entry&) = delete;
- Entry& operator=(const Entry&) = delete;
- Entry(Entry&&) = delete;
- Entry& operator=(Entry&&) = delete;
- virtual ~Entry() = default;
-
- /** @brief Constructor to put object onto bus at a dbus path.
- * @param[in] path - Path to attach at.
- * @param[in] eventId - The event entry id.
- * @param[in] timestamp - timestamp when the event created.
- * @param[in] msg - The message of the event.
- * @param[in] metaData - The event metadata.
- */
- Entry(
- const std::string& path,
- uint64_t eventTimestamp,
- std::string&& msg,
- std::vector<std::string>&& metaData) :
- EntryIface(SDBusPlus::getBus(), path.c_str(), true),
- objectPath(path)
- {
- timestamp(eventTimestamp);
- message(msg);
- additionalData(metaData);
- // Emit deferred signal.
- this->emit_object_added();
- }
-
- /** @brief Path of Object. */
- std::string objectPath;
-
+ public:
+ Entry() = delete;
+ Entry(const Entry&) = delete;
+ Entry& operator=(const Entry&) = delete;
+ Entry(Entry&&) = delete;
+ Entry& operator=(Entry&&) = delete;
+ virtual ~Entry() = default;
+
+ /** @brief Constructor to put object onto bus at a dbus path.
+ * @param[in] path - Path to attach at.
+ * @param[in] eventId - The event entry id.
+ * @param[in] timestamp - timestamp when the event created.
+ * @param[in] msg - The message of the event.
+ * @param[in] metaData - The event metadata.
+ */
+ Entry(const std::string& path, uint64_t eventTimestamp, std::string&& msg,
+ std::vector<std::string>&& metaData) :
+ EntryIface(SDBusPlus::getBus(), path.c_str(), true),
+ objectPath(path)
+ {
+ timestamp(eventTimestamp);
+ message(msg);
+ additionalData(metaData);
+ // Emit deferred signal.
+ this->emit_object_added();
+ }
+
+ /** @brief Path of Object. */
+ std::string objectPath;
};
} // namespace events
OpenPOWER on IntegriCloud