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