Go to the documentation of this file.
16#ifndef LIEF_MACHO_DYLD_ENVIROMENT_COMMAND_H
17#define LIEF_MACHO_DYLD_ENVIROMENT_COMMAND_H
29struct dylinker_command;
39 DyldEnvironment&
operator=(
const DyldEnvironment& copy) =
default;
42 std::unique_ptr<LoadCommand>
clone()
const override {
43 return std::unique_ptr<DyldEnvironment>(
new DyldEnvironment(*
this));
48 std::ostream&
print(std::ostream& os)
const override;
49 const std::string&
value()
const {
56 value_ = std::move(value);
59 void accept(Visitor& visitor)
const override;
61 static bool classof(
const LoadCommand* cmd) {
62 return cmd->
command() == LoadCommand::TYPE::DYLD_ENVIRONMENT;
Class that represents a LC_DYLD_ENVIRONMENT command which is used by the Mach-O linker/loader to init...
Definition DyldEnvironment.hpp:34
DyldEnvironment(const DyldEnvironment ©)=default
DyldEnvironment(const details::dylinker_command &cmd)
void value(std::string value)
Definition DyldEnvironment.hpp:55
~DyldEnvironment() override=default
DyldEnvironment()=default
static bool classof(const LoadCommand *cmd)
Definition DyldEnvironment.hpp:61
DyldEnvironment & operator=(const DyldEnvironment ©)=default
std::unique_ptr< LoadCommand > clone() const override
Definition DyldEnvironment.hpp:42
std::ostream & print(std::ostream &os) const override
void accept(Visitor &visitor) const override
const std::string & value() const
The actual environment variable.
Definition DyldEnvironment.hpp:51
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:124
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