-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathramoops_manager.hpp
51 lines (42 loc) · 1.05 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
50
51
#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
* createDump D-Bus interface.
* @param [in] files - ramoops files list
*/
void createHelper(const std::vector<std::string>& files);
/** @brief Create an error indicating ramoops was found
*
*/
void createError();
};
} // namespace ramoops
} // namespace dump
} // namespace phosphor