16#ifndef LIEF_MACHO_RPATH_COMMAND_H
17#define LIEF_MACHO_RPATH_COMMAND_H
21#include "LIEF/visibility.h"
23#include "LIEF/MachO/LoadCommand.hpp"
44 std::unique_ptr<LoadCommand> clone()
const override {
45 return std::unique_ptr<RPathCommand>(
new RPathCommand(*
this));
51 const std::string&
path()
const {
55 void path(std::string path) {
56 path_ = std::move(path);
59 void accept(
Visitor& visitor)
const override;
61 std::ostream& print(std::ostream& os)
const override;
63 static bool classof(
const LoadCommand* cmd) {
64 return cmd->command() == LoadCommand::TYPE::RPATH;
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
Class that represents the LC_RPATH command.
Definition RPathCommand.hpp:36
const std::string & path() const
The rpath value as a string.
Definition RPathCommand.hpp:51
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32