Go to the documentation of this file.
16#ifndef LIEF_ELF_DYNAMIC_SHARED_OBJECT_H
17#define LIEF_ELF_DYNAMIC_SHARED_OBJECT_H
34 using DynamicEntry::DynamicEntry;
36 DynamicEntry(DynamicEntry::TAG::SONAME, 0)
40 DynamicEntry(DynamicEntry::TAG::SONAME, 0),
41 name_(std::move(name))
44 DynamicSharedObject&
operator=(
const DynamicSharedObject&) =
default;
47 std::unique_ptr<DynamicEntry>
clone()
const override {
48 return std::unique_ptr<DynamicSharedObject>(
new DynamicSharedObject(*
this));
50 const std::string&
name()
const {
56 void name(std::string name) {
57 name_ = std::move(name);
60 void accept(Visitor& visitor)
const override;
62 std::ostream&
print(std::ostream& os)
const override;
64 static bool classof(
const DynamicEntry* entry) {
65 return entry->
tag() == DynamicEntry::TAG::SONAME;
Class which represents an entry in the dynamic table These entries are located in the ....
Definition DynamicEntry.hpp:36
TAG tag() const
Tag of the current entry. The most common tags are: DT_NEEDED, DT_INIT, ...
Definition DynamicEntry.hpp:205
Class which represents a DT_SONAME entry in the dynamic table This kind of entry is usually used to n...
Definition DynamicSharedObject.hpp:31
~DynamicSharedObject() override=default
void name(std::string name)
Definition DynamicSharedObject.hpp:56
DynamicSharedObject(std::string name)
Definition DynamicSharedObject.hpp:39
void accept(Visitor &visitor) const override
std::unique_ptr< DynamicEntry > clone() const override
Definition DynamicSharedObject.hpp:47
std::ostream & print(std::ostream &os) const override
DynamicSharedObject(const DynamicSharedObject &)=default
DynamicSharedObject()
Definition DynamicSharedObject.hpp:35
static bool classof(const DynamicEntry *entry)
Definition DynamicSharedObject.hpp:64
const std::string & name() const
The actual name (e.g. libMyLib.so)
Definition DynamicSharedObject.hpp:52
DynamicSharedObject & operator=(const DynamicSharedObject &)=default
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41