mirror of
https://github.com/hasherezade/bearparser
synced 2026-06-08 14:32:38 +00:00
24 lines
630 B
C++
24 lines
630 B
C++
#include "MappedExe.h"
|
|
|
|
void ExeWrappersContainer::clearWrappers()
|
|
{
|
|
std::map<size_t, ExeElementWrapper*>::iterator itr;
|
|
for (itr = this->wrappers.begin(); itr != this->wrappers.end(); ++itr){
|
|
ExeElementWrapper* wrapper = itr->second;
|
|
delete wrapper;
|
|
}
|
|
wrappers.clear();
|
|
}
|
|
|
|
ExeElementWrapper* ExeWrappersContainer::getWrapper(size_t wrapperId)
|
|
{
|
|
if (wrappers.find(wrapperId) == wrappers.end()) return NULL;
|
|
return wrappers[wrapperId];
|
|
}
|
|
|
|
QString ExeWrappersContainer::getWrapperName(size_t id)
|
|
{
|
|
if (wrappers.find(id) == wrappers.end()) return "";
|
|
return wrappers[id]->getName();
|
|
}
|