1 #include "manager.hpp"
2 
3 #include "additional_data.hpp"
4 
5 namespace openpower
6 {
7 namespace pels
8 {
9 
10 using namespace phosphor::logging;
11 
12 namespace additional_data
13 {
14 constexpr auto rawPEL = "RAWPEL";
15 }
16 
17 void Manager::create(const std::string& message, uint32_t obmcLogID,
18                      uint64_t timestamp, Entry::Level severity,
19                      const std::vector<std::string>& additionalData,
20                      const std::vector<std::string>& associations)
21 {
22     AdditionalData ad{additionalData};
23 
24     // If a PEL was passed in, use that.  Otherwise, create one.
25     auto rawPelPath = ad.getValue(additional_data::rawPEL);
26     if (rawPelPath)
27     {
28         addRawPEL(*rawPelPath, obmcLogID);
29     }
30     else
31     {
32         createPEL(message, obmcLogID, timestamp, severity, additionalData,
33                   associations);
34     }
35 }
36 
37 void Manager::addRawPEL(const std::string& rawPelPath, uint32_t obmcLogID)
38 {
39 }
40 
41 void Manager::erase(uint32_t obmcLogID)
42 {
43 }
44 
45 bool Manager::isDeleteProhibited(uint32_t obmcLogID)
46 {
47     return false;
48 }
49 
50 void Manager::createPEL(const std::string& message, uint32_t obmcLogID,
51                         uint64_t timestamp,
52                         phosphor::logging::Entry::Level severity,
53                         const std::vector<std::string>& additionalData,
54                         const std::vector<std::string>& associations)
55 {
56 }
57 
58 } // namespace pels
59 } // namespace openpower
60