BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
ExeFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include "Executable.h"
4
6{
7public:
8 ExeFactoryException(const QString info) : CustomException(info) {}
9};
10
12{
13public:
14 enum exe_type {
15 NONE = 0,
16 PE = 1,
19 };
20
21 static void init();
22 static void destroy();
23
25 static Executable* build(AbstractByteBuffer *buf, exe_type type);
26 static QString getTypeName(exe_type type);
27
28protected:
29 static std::map<exe_type, ExeBuilder*> builders;
30};
ExeFactoryException(const QString info)
Definition ExeFactory.h:8
static exe_type findMatching(AbstractByteBuffer *buf)
static std::map< exe_type, ExeBuilder * > builders
Definition ExeFactory.h:29
static void destroy()
static Executable * build(AbstractByteBuffer *buf, exe_type type)
static void init()
Definition ExeFactory.cpp:8
static QString getTypeName(exe_type type)