retdec
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
retdec::unpackertool::PluginMgr Class Reference

The manager of unpacking plugins. More...

#include <plugin_mgr.h>

Collaboration diagram for retdec::unpackertool::PluginMgr:
Collaboration graph
[legend]

Public Member Functions

 PluginMgr (const PluginMgr &)=delete
 

Static Public Member Functions

static PluginList matchingPlugins (const std::string &packerName, const std::string &packerVersion)
 

Static Public Attributes

static const PluginList plugins
 

Private Member Functions

 PluginMgr ()=default
 

Detailed Description

The manager of unpacking plugins.

PluginMgr is static representing the plugin manager. It stores all active plugins. It can also find the matching plugins for the specified plugin packer and version. Packer name is case-insesitively matched against packer specified in metadata of the plugin. Every plugin aso contains the regular expression matching the version of packers it is able to unpack.

Constructor & Destructor Documentation

◆ PluginMgr() [1/2]

retdec::unpackertool::PluginMgr::PluginMgr ( const PluginMgr )
delete

◆ PluginMgr() [2/2]

retdec::unpackertool::PluginMgr::PluginMgr ( )
privatedefault

Member Function Documentation

◆ matchingPlugins()

PluginList retdec::unpackertool::PluginMgr::matchingPlugins ( const std::string &  packerName,
const std::string &  packerVersion 
)
static

Find the matching plugins in the registered plugins table.

Parameters
packerNameThe packer name for which the plugins are found.
packerVersionThe packer version for which the plugins are found.
Returns
The list of matched plugins.

Member Data Documentation

◆ plugins

const std::vector< Plugin * > retdec::unpackertool::PluginMgr::plugins
static
Initial value:
=
{
}
#define mpress_plugin
Definition: mpress.h:15
#define upx_plugin
Definition: upx.h:16

The documentation for this class was generated from the following files: