16#ifndef LIEF_MACHO_RPATH_COMMAND_H
17#define LIEF_MACHO_RPATH_COMMAND_H
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);
61 std::ostream&
print(std::ostream& os)
const override;
64 return cmd->
command() == LoadCommand::TYPE::RPATH;
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:122
Class that represents the LC_RPATH command.
Definition RPathCommand.hpp:36
RPathCommand(const details::rpath_command &rpathCmd)
const std::string & path() const
The rpath value as a string.
Definition RPathCommand.hpp:51
void path(std::string path)
Definition RPathCommand.hpp:55
RPathCommand(const RPathCommand ©)=default
RPathCommand & operator=(const RPathCommand ©)=default
static bool classof(const LoadCommand *cmd)
Definition RPathCommand.hpp:63
std::unique_ptr< LoadCommand > clone() const override
Definition RPathCommand.hpp:44
void accept(Visitor &visitor) const override
std::ostream & print(std::ostream &os) const override
~RPathCommand() override=default
Definition Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41