-
Notifications
You must be signed in to change notification settings - Fork 22
/
ramoops_manager.hpp
49 lines (40 loc) · 1.03 KB
/
ramoops_manager.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include "config.h"
#include <phosphor-logging/log.hpp>
#include <filesystem>
#include <string>
#include <vector>
namespace fs = std::filesystem;
using namespace phosphor::logging;
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