BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
parser
include
bearparser
pe
PENodeWrapper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
../ExeNodeWrapper.h
"
4
#include "pe_formats.h"
5
6
class
PEFile
;
7
8
class
PEElementWrapper
:
public
ExeElementWrapper
9
{
10
public
:
11
PEElementWrapper
(
PEFile
* pe);
12
virtual
~PEElementWrapper
() {}
13
14
PEFile
*
getPE
() {
return
m_PE
; }
15
16
protected
:
17
PEFile
*
m_PE
;
18
19
friend
class
PEFile
;
20
};
21
22
//----
23
24
class
PENodeWrapper
:
public
ExeNodeWrapper
25
{
26
public
:
27
PENodeWrapper
(
PEFile
* pe,
PENodeWrapper
* parent = NULL);
28
PENodeWrapper
(
PEFile
* pe,
PENodeWrapper
* parent,
size_t
entryNumber);
29
30
virtual
~PENodeWrapper
() {}
31
32
PEFile
*
getPE
() {
return
m_PE
; }
33
virtual
PENodeWrapper
*
getParentNode
() {
return
peParentNode
; }
34
35
protected
:
36
PEFile
*
m_PE
;
37
PENodeWrapper
*
peParentNode
;
38
39
friend
class
PEFile
;
40
};
ExeNodeWrapper.h
ExeElementWrapper
Definition
ExeElementWrapper.h:12
ExeNodeWrapper
Definition
ExeNodeWrapper.h:9
PEElementWrapper
Definition
PENodeWrapper.h:9
PEElementWrapper::PEElementWrapper
PEElementWrapper(PEFile *pe)
Definition
PENodeWrapper.cpp:4
PEElementWrapper::getPE
PEFile * getPE()
Definition
PENodeWrapper.h:14
PEElementWrapper::m_PE
PEFile * m_PE
Definition
PENodeWrapper.h:17
PEElementWrapper::~PEElementWrapper
virtual ~PEElementWrapper()
Definition
PENodeWrapper.h:12
PEFile
Definition
PEFile.h:45
PENodeWrapper
Definition
PENodeWrapper.h:25
PENodeWrapper::~PENodeWrapper
virtual ~PENodeWrapper()
Definition
PENodeWrapper.h:30
PENodeWrapper::PENodeWrapper
PENodeWrapper(PEFile *pe, PENodeWrapper *parent=NULL)
Definition
PENodeWrapper.cpp:11
PENodeWrapper::getParentNode
virtual PENodeWrapper * getParentNode()
Definition
PENodeWrapper.h:33
PENodeWrapper::getPE
PEFile * getPE()
Definition
PENodeWrapper.h:32
PENodeWrapper::peParentNode
PENodeWrapper * peParentNode
Definition
PENodeWrapper.h:37
PENodeWrapper::m_PE
PEFile * m_PE
Definition
PENodeWrapper.h:36
Generated by
1.12.0