15#ifndef LIEF_MACHO_UNKNOWN_COMMAND_H
16#define LIEF_MACHO_UNKNOWN_COMMAND_H
38 original_command_(static_cast<uint64_t>(command_))
40 command_ = LoadCommand::TYPE::LIEF_UNKNOWN;
46 std::unique_ptr<LoadCommand>
clone()
const override {
54 return original_command_;
59 std::ostream&
print(std::ostream& os)
const override;
62 return cmd->
command() == LoadCommand::TYPE::LIEF_UNKNOWN;
66 uint64_t original_command_ = 0;
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:122
Generic class when the command is not recognized by LIEF.
Definition UnknownCommand.hpp:32
UnknownCommand(const details::load_command &command)
Definition UnknownCommand.hpp:36
void accept(Visitor &visitor) const override
uint64_t original_command() const
The original LC_ int that is not supported by LIEF.
Definition UnknownCommand.hpp:53
UnknownCommand & operator=(const UnknownCommand ©)=default
std::unique_ptr< LoadCommand > clone() const override
Definition UnknownCommand.hpp:46
std::ostream & print(std::ostream &os) const override
static bool classof(const LoadCommand *cmd)
Definition UnknownCommand.hpp:61
UnknownCommand(const UnknownCommand ©)=default
~UnknownCommand() override=default
Definition Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41