Go to the documentation of this file.
16#ifndef LIEF_MACHO_DYLINKER_COMMAND_H
17#define LIEF_MACHO_DYLINKER_COMMAND_H
29struct dylinker_command;
40 DylinkerCommand&
operator=(
const DylinkerCommand& copy) =
default;
43 std::unique_ptr<LoadCommand>
clone()
const override {
44 return std::unique_ptr<DylinkerCommand>(
new DylinkerCommand(*
this));
49 std::ostream&
print(std::ostream& os)
const override;
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 static bool classof(
const LoadCommand* cmd) {
63 const LoadCommand::TYPE type = cmd->
command();
64 return type == LoadCommand::TYPE::ID_DYLINKER ||
65 type == LoadCommand::TYPE::LOAD_DYLINKER;
Class that represents the Mach-O linker, also named loader. Most of the time, DylinkerCommand::name()...
Definition DylinkerCommand.hpp:34
~DylinkerCommand() override=default
DylinkerCommand()=default
std::unique_ptr< LoadCommand > clone() const override
Definition DylinkerCommand.hpp:43
const std::string & name() const
Path to the linker (or loader)
Definition DylinkerCommand.hpp:52
static bool classof(const LoadCommand *cmd)
Definition DylinkerCommand.hpp:62
void name(std::string name)
Definition DylinkerCommand.hpp:56
DylinkerCommand(const details::dylinker_command &cmd)
DylinkerCommand(std::string name)
std::ostream & print(std::ostream &os) const override
DylinkerCommand & operator=(const DylinkerCommand ©)=default
void accept(Visitor &visitor) const override
DylinkerCommand(const DylinkerCommand ©)=default
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:125
Definition endianness_support.hpp:59
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41