| #pragma once |
| |
| #include "config.h" |
| |
| #include <filesystem> |
| #include <string> |
| #include <vector> |
| |
| namespace fs = std::filesystem; |
| |
| namespace phosphor |
| { |
| namespace dump |
| { |
| namespace ramoops |
| { |
| |
| /** @class Manager |
| * @brief OpenBMC Core manager implementation. |
| */ |
| class Manager |
| { |
| public: |
| Manager() = delete; |
| Manager(const Manager&) = default; |
| Manager& operator=(const Manager&) = delete; |
| Manager(Manager&&) = delete; |
| Manager& operator=(Manager&&) = delete; |
| virtual ~Manager() = default; |
| |
| /** @brief Constructor to create ramoops |
| * @param[in] filePath - Path where the ramoops are stored. |
| */ |
| Manager(const std::string& filePath); |
| |
| private: |
| /** @brief Helper function for initiating dump request using |
| * D-bus internal create interface. |
| * @param [in] files - ramoops files list |
| */ |
| void createHelper(const std::vector<std::string>& files); |
| }; |
| |
| } // namespace ramoops |
| } // namespace dump |
| } // namespace phosphor |