blob: 455023ef9eabe6f6fcc8cb78633a6f4af7c31e10 [file] [log] [blame]
Jayanth Othayotha320c7c2017-06-14 07:17:21 -05001#include "dump_manager.hpp"
Jayanth Othayothcb65ffc2018-10-16 08:29:32 -05002
Jayanth Othayotha320c7c2017-06-14 07:17:21 -05003namespace phosphor
4{
5namespace dump
6{
7
Jayanth Othayotha320c7c2017-06-14 07:17:21 -05008void Manager::erase(uint32_t entryId)
9{
10 entries.erase(entryId);
11}
12
Nagaraju Goruganti3c899a42017-09-12 06:14:46 -050013void Manager::deleteAll()
14{
15 auto iter = entries.begin();
16 while (iter != entries.end())
17 {
18 auto& entry = iter->second;
Nagaraju Goruganti3c899a42017-09-12 06:14:46 -050019 ++iter;
Stanley Chud11d6132020-03-12 14:52:34 +080020 entry->delete_();
Nagaraju Goruganti3c899a42017-09-12 06:14:46 -050021 }
22}
23
Jayanth Othayothcb65ffc2018-10-16 08:29:32 -050024} // namespace dump
25} // namespace phosphor