16#ifndef LIEF_MACHO_RPATH_COMMAND_H
17#define LIEF_MACHO_RPATH_COMMAND_H
45 std::unique_ptr<LoadCommand>
clone()
const override {
46 return std::unique_ptr<RPathCommand>(
new RPathCommand(*
this));
50 static std::unique_ptr<RPathCommand>
create(std::string
path) {
57 const std::string&
path()
const {
67 path_ = std::move(
path);
72 std::ostream&
print(std::ostream& os)
const override;
79 uint32_t path_offset_ = 0;
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:128
@ RPATH
Definition LoadCommand.hpp:73
RPathCommand(const details::rpath_command &rpathCmd)
const std::string & path() const
The rpath value as a string.
Definition RPathCommand.hpp:57
void path(std::string path)
Definition RPathCommand.hpp:66
RPathCommand(const RPathCommand ©)=default
RPathCommand & operator=(const RPathCommand ©)=default
static bool classof(const LoadCommand *cmd)
Definition RPathCommand.hpp:74
std::unique_ptr< LoadCommand > clone() const override
Definition RPathCommand.hpp:45
uint32_t path_offset() const
Original string offset of the path.
Definition RPathCommand.hpp:62
void accept(Visitor &visitor) const override
RPathCommand(std::string path)
std::ostream & print(std::ostream &os) const override
static std::unique_ptr< RPathCommand > create(std::string path)
Create a new RPath command for the provided path.
Definition RPathCommand.hpp:50
~RPathCommand() override=default
Definition Visitor.hpp:210
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:40
#define LIEF_API
Definition visibility.h:41