LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_MACHO_RPATH_COMMAND_H
17#define LIEF_MACHO_RPATH_COMMAND_H
42 RPathCommand&
operator=(
const RPathCommand& copy) =
default;
45 std::unique_ptr<LoadCommand>
clone()
const override {
46 return std::unique_ptr<RPathCommand>(
new RPathCommand(*
this));
48 static std::unique_ptr<RPathCommand>
create(std::string path) {
51 return std::unique_ptr<RPathCommand>(
new RPathCommand(std::move(path)));
55 const std::string&
path()
const {
66 void path(std::string path) {
67 path_ = std::move(path);
70 void accept(Visitor& visitor)
const override;
72 std::ostream&
print(std::ostream& os)
const override;
74 static bool classof(
const LoadCommand* cmd) {
75 return cmd->
command() == LoadCommand::TYPE::RPATH;
79 uint32_t path_offset_ = 0;
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:125
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: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 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