LIEF: Library to Instrument Executable Formats
Version 1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
PE
debug
PogoEntry.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
* Copyright 2017 - 2026 Quarkslab
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef LIEF_PE_DEBUG_POGO_ENTRY_H
17
#define LIEF_PE_DEBUG_POGO_ENTRY_H
18
#include <ostream>
19
#include <cstdint>
20
21
#include "
LIEF/Object.hpp
"
22
#include "
LIEF/visibility.h
"
23
24
namespace
LIEF
{
25
namespace
PE
{
26
27
class
Builder
;
28
class
Parser
;
29
30
class
LIEF_API
PogoEntry
:
public
Object
{
31
friend
class
Builder
;
32
friend
class
Parser
;
33
34
public
:
35
PogoEntry
() =
default
;
36
PogoEntry
(
PogoEntry
&& other) =
default
;
37
PogoEntry
&
operator=
(
PogoEntry
&& other) =
default
;
38
PogoEntry
(
const
PogoEntry
&) =
default
;
39
PogoEntry
(uint32_t
start_rva
, uint32_t
size
, std::string
name
) :
40
start_rva_{
start_rva
},
41
size_{
size
},
42
name_{
std
::move(
name
)} {}
43
44
PogoEntry
(uint32_t
start_rva
, uint32_t
size
) :
45
PogoEntry
{
start_rva
,
size
,
""
} {}
46
47
PogoEntry
&
operator=
(
const
PogoEntry
&) =
default
;
48
~PogoEntry
()
override
=
default
;
49
50
uint32_t
start_rva
()
const
{
51
return
start_rva_;
52
}
53
54
uint32_t
size
()
const
{
55
return
size_;
56
}
57
58
const
std::string&
name
()
const
{
59
return
name_;
60
}
61
62
void
start_rva
(uint32_t
start_rva
) {
63
start_rva_ =
start_rva
;
64
}
65
66
void
size
(uint32_t
size
) {
67
size_ =
size
;
68
}
69
70
void
name
(std::string
name
) {
71
name_ = std::move(
name
);
72
}
73
74
void
accept
(
Visitor
& visitor)
const override
;
75
76
LIEF_API
friend
std::ostream&
operator<<
(std::ostream& os,
77
const
PogoEntry
& entry);
78
79
protected
:
80
uint32_t start_rva_ = 0;
81
uint32_t size_ = 0;
82
std::string name_;
83
};
84
85
}
// Namespace PE
86
}
// Namespace LIEF
87
88
#endif
Object.hpp
LIEF::Object::Object
Object()
LIEF::PE::Builder
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition
PE/Builder.hpp:45
LIEF::PE::Parser
Main interface to parse PE binaries. In particular, the static Parser::parse functions should be used...
Definition
PE/Parser.hpp:52
LIEF::PE::PogoEntry::~PogoEntry
~PogoEntry() override=default
LIEF::PE::PogoEntry::PogoEntry
PogoEntry(uint32_t start_rva, uint32_t size, std::string name)
Definition
PogoEntry.hpp:39
LIEF::PE::PogoEntry::accept
void accept(Visitor &visitor) const override
LIEF::PE::PogoEntry::PogoEntry
PogoEntry(PogoEntry &&other)=default
LIEF::PE::PogoEntry::operator=
PogoEntry & operator=(const PogoEntry &)=default
LIEF::PE::PogoEntry::Builder
friend class Builder
Definition
PogoEntry.hpp:31
LIEF::PE::PogoEntry::size
void size(uint32_t size)
Definition
PogoEntry.hpp:66
LIEF::PE::PogoEntry::PogoEntry
PogoEntry(const PogoEntry &)=default
LIEF::PE::PogoEntry::operator<<
friend std::ostream & operator<<(std::ostream &os, const PogoEntry &entry)
LIEF::PE::PogoEntry::Parser
friend class Parser
Definition
PogoEntry.hpp:32
LIEF::PE::PogoEntry::size
uint32_t size() const
Definition
PogoEntry.hpp:54
LIEF::PE::PogoEntry::PogoEntry
PogoEntry()=default
LIEF::PE::PogoEntry::operator=
PogoEntry & operator=(PogoEntry &&other)=default
LIEF::PE::PogoEntry::start_rva
void start_rva(uint32_t start_rva)
Definition
PogoEntry.hpp:62
LIEF::PE::PogoEntry::name
void name(std::string name)
Definition
PogoEntry.hpp:70
LIEF::PE::PogoEntry::PogoEntry
PogoEntry(uint32_t start_rva, uint32_t size)
Definition
PogoEntry.hpp:44
LIEF::PE::PogoEntry::name
const std::string & name() const
Definition
PogoEntry.hpp:58
LIEF::PE::PogoEntry::start_rva
uint32_t start_rva() const
Definition
PogoEntry.hpp:50
LIEF::Visitor
Definition
Visitor.hpp:212
LIEF::PE
Namespace related to the LIEF's PE module.
Definition
Abstract/Header.hpp:32
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
std
Definition
string.h:155
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:43
Generated by
1.17.0