Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <sdbusplus/server/object.hpp> |
| 5 | #include "xyz/openbmc_project/Logging/Entry/server.hpp" |
| 6 | |
| 7 | namespace phosphor |
| 8 | { |
| 9 | namespace logging |
| 10 | { |
| 11 | namespace details |
| 12 | { |
| 13 | |
| 14 | template <typename T> |
| 15 | using ServerObject = typename sdbusplus::server::object::object<T>; |
| 16 | |
| 17 | using EntryIface = |
| 18 | sdbusplus::xyz::openbmc_project::Logging::server::Entry; |
| 19 | |
| 20 | } // namespace details |
| 21 | |
| 22 | /** @class Entry |
| 23 | * @brief OpenBMC logging entry implementation. |
| 24 | * @details A concrete implementation for the |
| 25 | * xyz.openbmc_project.Logging.Entry DBus API. |
| 26 | */ |
| 27 | class Entry final : |
| 28 | public details::ServerObject<details::EntryIface> |
| 29 | { |
| 30 | public: |
| 31 | Entry() = delete; |
| 32 | Entry(const Entry&) = delete; |
| 33 | Entry& operator=(const Entry&) = delete; |
| 34 | Entry(Entry&&) = delete; |
| 35 | Entry& operator=(Entry&&) = delete; |
| 36 | virtual ~Entry() = default; |
| 37 | |
| 38 | /** @brief Constructor for the Log Entry object |
| 39 | * @param[in] bus - DBus bus to attach to. |
| 40 | * @param[in] obj - Object path to attach to. |
| 41 | */ |
| 42 | Entry(sdbusplus::bus::bus& bus, const char* obj); |
| 43 | }; |
| 44 | |
| 45 | } // namespace logging |
| 46 | } // namespace phosphor |