16#ifndef LIEF_MACHO_SUB_FRAMEWORK_H
17#define LIEF_MACHO_SUB_FRAMEWORK_H
31struct sub_framework_command;
55 std::unique_ptr<LoadCommand>
clone()
const override {
56 return std::unique_ptr<SubFramework>(
new SubFramework(*
this));
64 umbrella_ = std::move(u);
71 std::ostream&
print(std::ostream& os)
const override;
74 return cmd->
command() == LoadCommand::TYPE::SUB_FRAMEWORK;
78 std::string umbrella_;
Class used to parse a single binary (i.e. non-FAT)
Definition BinaryParser.hpp:74
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 SubFramework command. Accodring to the Mach-O loader.h documentation:
Definition SubFramework.hpp:46
SubFramework(const SubFramework ©)=default
std::unique_ptr< LoadCommand > clone() const override
Definition SubFramework.hpp:55
SubFramework & operator=(const SubFramework ©)=default
SubFramework(const details::sub_framework_command &cmd)
~SubFramework() override=default
std::ostream & print(std::ostream &os) const override
void accept(Visitor &visitor) const override
void umbrella(std::string u)
Definition SubFramework.hpp:63
const std::string & umbrella() const
Name of the umbrella framework.
Definition SubFramework.hpp:60
static bool classof(const LoadCommand *cmd)
Definition SubFramework.hpp:73
Definition Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41