Go to the documentation of this file.
16#ifndef LIEF_MACHO_SUB_FRAMEWORK_H
17#define LIEF_MACHO_SUB_FRAMEWORK_H
31struct sub_framework_command;
47 friend class BinaryParser;
52 SubFramework&
operator=(
const SubFramework& copy) =
default;
55 std::unique_ptr<LoadCommand>
clone()
const override {
56 return std::unique_ptr<SubFramework>(
new SubFramework(*
this));
58 const std::string&
umbrella()
const {
64 umbrella_ = std::move(u);
69 void accept(Visitor& visitor)
const override;
71 std::ostream&
print(std::ostream& os)
const override;
73 static bool classof(
const LoadCommand* cmd) {
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:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:124
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 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