16#ifndef LIEF_MACHO_SUB_FRAMEWORK_H
17#define LIEF_MACHO_SUB_FRAMEWORK_H
21#include "LIEF/visibility.h"
23#include "LIEF/MachO/LoadCommand.hpp"
31struct sub_framework_command;
55 std::unique_ptr<LoadCommand> clone()
const override {
56 return std::unique_ptr<SubFramework>(
new SubFramework(*
this));
63 void umbrella(std::string u) {
64 umbrella_ = std::move(u);
67 ~SubFramework()
override =
default;
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:73
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
Class that represents the SubFramework command. Accodring to the Mach-O loader.h documentation:
Definition SubFramework.hpp:46
const std::string & umbrella() const
Name of the umbrella framework.
Definition SubFramework.hpp:60
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32