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
signature
attributes
MsSpcStatementType.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_ATTRIBUTES_MS_SPC_STATEMENT_TYPE_H
17
#define LIEF_PE_ATTRIBUTES_MS_SPC_STATEMENT_TYPE_H
18
19
#include "
LIEF/visibility.h
"
20
#include "
LIEF/PE/signature/Attribute.hpp
"
21
#include "
LIEF/PE/signature/types.hpp
"
22
23
namespace
LIEF
{
24
namespace
PE
{
25
34
class
LIEF_API
MsSpcStatementType
:
public
Attribute
{
35
36
friend
class
Parser
;
37
friend
class
SignatureParser
;
38
39
public
:
40
MsSpcStatementType
() =
delete
;
41
MsSpcStatementType
(
oid_t
oid
) :
42
Attribute
(
Attribute
::
TYPE
::MS_SPC_STATEMENT_TYPE),
43
oid_{std::move(
oid
)}
44
{}
45
46
MsSpcStatementType
(
const
MsSpcStatementType
&) =
default
;
47
MsSpcStatementType
&
operator=
(
const
MsSpcStatementType
&) =
default
;
48
49
std::unique_ptr<Attribute>
clone
()
const override
{
50
return
std::unique_ptr<Attribute>(
new
MsSpcStatementType
{*
this
});
51
}
52
57
const
oid_t
&
oid
()
const
{
58
return
oid_;
59
}
60
62
std::string
print
()
const override
;
63
64
static
bool
classof
(
const
Attribute
* attr) {
65
return
attr->
type
() ==
Attribute::TYPE::MS_SPC_STATEMENT_TYPE
;
66
}
67
68
void
accept
(
Visitor
& visitor)
const override
;
69
~MsSpcStatementType
()
override
=
default
;
70
71
private
:
72
oid_t
oid_;
73
};
74
75
}
76
}
77
78
#endif
Attribute.hpp
types.hpp
LIEF::PE::Attribute::TYPE
TYPE
Definition
PE/signature/Attribute.hpp:35
LIEF::PE::Attribute::TYPE::MS_SPC_STATEMENT_TYPE
@ MS_SPC_STATEMENT_TYPE
Definition
PE/signature/Attribute.hpp:46
LIEF::PE::Attribute::Attribute
Attribute()=delete
LIEF::PE::Attribute::type
virtual TYPE type() const
Concrete type of the attribute.
Definition
PE/signature/Attribute.hpp:62
LIEF::PE::MsSpcStatementType::oid
const oid_t & oid() const
According to the documentation:
Definition
MsSpcStatementType.hpp:57
LIEF::PE::MsSpcStatementType::MsSpcStatementType
MsSpcStatementType()=delete
LIEF::PE::MsSpcStatementType::clone
std::unique_ptr< Attribute > clone() const override
Definition
MsSpcStatementType.hpp:49
LIEF::PE::MsSpcStatementType::SignatureParser
friend class SignatureParser
Definition
MsSpcStatementType.hpp:37
LIEF::PE::MsSpcStatementType::MsSpcStatementType
MsSpcStatementType(const MsSpcStatementType &)=default
LIEF::PE::MsSpcStatementType::operator=
MsSpcStatementType & operator=(const MsSpcStatementType &)=default
LIEF::PE::MsSpcStatementType::accept
void accept(Visitor &visitor) const override
LIEF::PE::MsSpcStatementType::Parser
friend class Parser
Definition
MsSpcStatementType.hpp:36
LIEF::PE::MsSpcStatementType::print
std::string print() const override
Print information about the attribute.
LIEF::PE::MsSpcStatementType::MsSpcStatementType
MsSpcStatementType(oid_t oid)
Definition
MsSpcStatementType.hpp:41
LIEF::PE::MsSpcStatementType::classof
static bool classof(const Attribute *attr)
Definition
MsSpcStatementType.hpp:64
LIEF::PE::MsSpcStatementType::~MsSpcStatementType
~MsSpcStatementType() override=default
LIEF::Visitor
Definition
Visitor.hpp:210
LIEF::PE
Namespace related to the LIEF's PE module.
Definition
Abstract/Header.hpp:32
LIEF::PE::oid_t
std::string oid_t
Definition
PE/signature/types.hpp:23
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0