Go to the documentation of this file.
15#ifndef LIEF_MACHO_SUB_CLIENT_H
16#define LIEF_MACHO_SUB_CLIENT_H
30struct sub_client_command;
44 friend class BinaryParser;
49 SubClient&
operator=(
const SubClient& copy) =
default;
52 std::unique_ptr<LoadCommand>
clone()
const override {
53 return std::unique_ptr<SubClient>(
new SubClient(*
this));
55 const std::string&
client()
const {
62 client_ = std::move(u);
67 void accept(Visitor& visitor)
const override;
69 std::ostream&
print(std::ostream& os)
const override;
71 static bool classof(
const LoadCommand* cmd) {
72 return cmd->
command() == LoadCommand::TYPE::SUB_CLIENT;
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 SubClient command. Accodring to the Mach-O loader.h documentation:
Definition SubClient.hpp:43
std::ostream & print(std::ostream &os) const override
SubClient & operator=(const SubClient ©)=default
std::unique_ptr< LoadCommand > clone() const override
Definition SubClient.hpp:52
const std::string & client() const
Name of the client.
Definition SubClient.hpp:57
void client(std::string u)
Definition SubClient.hpp:61
SubClient(const details::sub_client_command &cmd)
void accept(Visitor &visitor) const override
~SubClient() override=default
SubClient(const SubClient ©)=default
static bool classof(const LoadCommand *cmd)
Definition SubClient.hpp:71
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