15#ifndef LIEF_MACHO_SUB_CLIENT_H
16#define LIEF_MACHO_SUB_CLIENT_H
30struct sub_client_command;
52 std::unique_ptr<LoadCommand>
clone()
const override {
53 return std::unique_ptr<SubClient>(
new SubClient(*
this));
62 client_ = std::move(u);
69 std::ostream&
print(std::ostream& os)
const override;
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 Visitor.hpp:225
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41