diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-04-10 02:11:54 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-04-11 10:57:48 +0000 |
commit | 8110ca6d243bbec89e5ce3be644883bf0dadd23d (patch) | |
tree | b413ab153cc3e9e729612cb9e003b6c2336e9d5f /elog_entry.hpp | |
parent | 36db46c210bcd8fabb5947a7bc7ca4933486cdad (diff) | |
download | phosphor-logging-8110ca6d243bbec89e5ce3be644883bf0dadd23d.tar.gz phosphor-logging-8110ca6d243bbec89e5ce3be644883bf0dadd23d.zip |
entry: store parent reference
Have the entry object store a reference to the error manager, passed via
the entry ctor.
Change-Id: I2c4a8c4c95929ab7005620f44ac17e9654d8e906
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'elog_entry.hpp')
-rw-r--r-- | elog_entry.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/elog_entry.hpp b/elog_entry.hpp index ac4949a..06f6bc2 100644 --- a/elog_entry.hpp +++ b/elog_entry.hpp @@ -19,6 +19,8 @@ using EntryIfaces = sdbusplus::server::object::object< using AssociationList = std::vector<std::tuple<std::string, std::string, std::string>>; +class Manager; + /** @class Entry * @brief OpenBMC logging entry implementation. * @details A concrete implementation for the @@ -45,6 +47,7 @@ class Entry : public EntryIfaces * @param[in] severityErr - The severity of the error. * @param[in] msgErr - The message of the error. * @param[in] additionalDataErr - The error metadata. + * @param[in] parent - The error's parent. */ Entry(sdbusplus::bus::bus& bus, const std::string& path, @@ -53,8 +56,10 @@ class Entry : public EntryIfaces Level severityErr, std::string&& msgErr, std::vector<std::string>&& additionalDataErr, - AssociationList&& objects) : - EntryIfaces(bus, path.c_str(), true) + AssociationList&& objects, + Manager& parent) : + EntryIfaces(bus, path.c_str(), true), + parent(parent) { id(idErr); severity(severityErr); @@ -92,6 +97,9 @@ class Entry : public EntryIfaces private: /** @brief This entry's associations */ AssociationList assocs = {}; + + /** @brief This entry's parent */ + Manager& parent; }; } // namespace logging |