summaryrefslogtreecommitdiffstats
path: root/src/event_entry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/event_entry.hpp')
-rw-r--r--src/event_entry.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/event_entry.hpp b/src/event_entry.hpp
index e39f1e2..899e5ec 100644
--- a/src/event_entry.hpp
+++ b/src/event_entry.hpp
@@ -50,6 +50,17 @@ class Entry : public EntryIface
this->emit_object_added();
}
+ /** @brief Constructor to create an empty event object with only
+ * timestamp, caller should make a call to emit added signal.
+ * @param[in] path - Path to attach at.
+ * @param[in] timestamp - timestamp when the event created.
+ */
+ Entry(const std::string& path, uint64_t eventTimestamp) :
+ EntryIface(SDBusPlus::getBus(), path.c_str(), true), objectPath(path)
+ {
+ timestamp(eventTimestamp);
+ }
+
/** @brief Path of Object. */
std::string objectPath;
};
OpenPOWER on IntegriCloud