16#ifndef LIEF_MACHO_DYLINKER_COMMAND_H
17#define LIEF_MACHO_DYLINKER_COMMAND_H
21#include "LIEF/visibility.h"
23#include "LIEF/MachO/LoadCommand.hpp"
29struct dylinker_command;
43 std::unique_ptr<LoadCommand> clone()
const override {
49 std::ostream& print(std::ostream& os)
const override;
52 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
const std::string & name() const
Path to the linker (or loader)
Definition DylinkerCommand.hpp:52
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32