Go to the documentation of this file.
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;
43 UnknownCommand&
operator=(
const UnknownCommand& copy) =
default;
46 std::unique_ptr<LoadCommand>
clone()
const override {
47 return std::unique_ptr<UnknownCommand>(
new UnknownCommand(*
this));
54 return original_command_;
57 void accept(Visitor& visitor)
const override;
59 std::ostream&
print(std::ostream& os)
const override;
61 static bool classof(
const LoadCommand* cmd) {
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:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:125
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 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