15#ifndef LIEF_MACHO_UNKNOWN_COMMAND_H
16#define LIEF_MACHO_UNKNOWN_COMMAND_H
19#include "LIEF/visibility.h"
21#include "LIEF/MachO/LoadCommand.hpp"
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_;
57 void accept(
Visitor& visitor)
const override;
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
uint64_t original_command() const
The original LC_ int that is not supported by LIEF.
Definition UnknownCommand.hpp:53
Definition Visitor.hpp:221
LIEF namespace.
Definition Abstract/Binary.hpp:31