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
ELF
SymbolVersionAux.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_ELF_SYMBOL_VERSION_AUX_H
17
#define LIEF_ELF_SYMBOL_VERSION_AUX_H
18
19
#include <string>
20
#include <ostream>
21
22
#include "
LIEF/Object.hpp
"
23
#include "
LIEF/visibility.h
"
24
25
namespace
LIEF
{
26
namespace
ELF
{
27
class
Parser
;
28
30
class
LIEF_API
SymbolVersionAux
:
public
Object
{
31
friend
class
Parser
;
32
public
:
33
SymbolVersionAux
(std::string
name
) :
34
name_(std::move(
name
))
35
{}
36
SymbolVersionAux
() =
default
;
37
~SymbolVersionAux
()
override
=
default
;
38
39
SymbolVersionAux
&
operator=
(
const
SymbolVersionAux
&) =
default
;
40
SymbolVersionAux
(
const
SymbolVersionAux
&) =
default
;
41
43
const
std::string&
name
()
const
{
44
return
name_;
45
}
46
47
void
name
(std::string
name
) {
48
name_ = std::move(
name
);
49
}
50
51
void
accept
(
Visitor
& visitor)
const override
;
52
53
LIEF_API
friend
54
std::ostream&
operator<<
(std::ostream& os,
const
SymbolVersionAux
& aux) {
55
os << aux.
name
();
56
return
os;
57
}
58
59
protected
:
60
std::string name_;
61
};
62
63
}
64
}
65
#endif
Object.hpp
LIEF::ELF::Parser
Class which parses and transforms an ELF file into a ELF::Binary object.
Definition
ELF/Parser.hpp:45
LIEF::ELF::SymbolVersionAux::~SymbolVersionAux
~SymbolVersionAux() override=default
LIEF::ELF::SymbolVersionAux::name
void name(std::string name)
Definition
SymbolVersionAux.hpp:47
LIEF::ELF::SymbolVersionAux::operator<<
friend std::ostream & operator<<(std::ostream &os, const SymbolVersionAux &aux)
Definition
SymbolVersionAux.hpp:54
LIEF::ELF::SymbolVersionAux::SymbolVersionAux
SymbolVersionAux()=default
LIEF::ELF::SymbolVersionAux::operator=
SymbolVersionAux & operator=(const SymbolVersionAux &)=default
LIEF::ELF::SymbolVersionAux::accept
void accept(Visitor &visitor) const override
LIEF::ELF::SymbolVersionAux::SymbolVersionAux
SymbolVersionAux(const SymbolVersionAux &)=default
LIEF::ELF::SymbolVersionAux::Parser
friend class Parser
Definition
SymbolVersionAux.hpp:31
LIEF::ELF::SymbolVersionAux::name
const std::string & name() const
Symbol's aux name (e.g. GLIBC_2.2.5).
Definition
SymbolVersionAux.hpp:43
LIEF::ELF::SymbolVersionAux::SymbolVersionAux
SymbolVersionAux(std::string name)
Definition
SymbolVersionAux.hpp:33
LIEF::Object::Object
Object()
LIEF::Visitor
Definition
Visitor.hpp:210
LIEF::ELF
Namespace related to the LIEF's ELF module.
Definition
Abstract/Header.hpp:28
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0