LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_MACHO_VERSION_MIN_COMMAND_H
17#define LIEF_MACHO_VERSION_MIN_COMMAND_H
29struct version_min_command;
35 public:
using version_t = std::array<uint32_t, 3>;
40 VersionMin(
const details::version_min_command& version_cmd);
42 VersionMin&
operator=(
const VersionMin& copy) =
default;
45 std::unique_ptr<LoadCommand>
clone()
const override {
46 return std::unique_ptr<VersionMin>(
new VersionMin(*
this));
50 const version_t&
version()
const {
58 const version_t&
sdk()
const {
63 void sdk(
const version_t& sdk) {
67 void accept(Visitor& visitor)
const override;
69 std::ostream&
print(std::ostream& os)
const override;
71 static bool classof(
const LoadCommand* cmd) {
72 const LoadCommand::TYPE type = cmd->
command();
73 return type == LoadCommand::TYPE::VERSION_MIN_MACOSX ||
74 type == LoadCommand::TYPE::VERSION_MIN_IPHONEOS;
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:124
Class that wraps the LC_VERSION_MIN_MACOSX, LC_VERSION_MIN_IPHONEOS, ... commands.
Definition VersionMin.hpp:33
~VersionMin() override=default
VersionMin(const VersionMin ©)=default
const version_t & version() const
Return the version as an array.
Definition VersionMin.hpp:52
const version_t & sdk() const
Return the sdk version as an array.
Definition VersionMin.hpp:60
VersionMin(const details::version_min_command &version_cmd)
void accept(Visitor &visitor) const override
std::unique_ptr< LoadCommand > clone() const override
Definition VersionMin.hpp:45
void version(const version_t &version)
Definition VersionMin.hpp:55
VersionMin & operator=(const VersionMin ©)=default
static bool classof(const LoadCommand *cmd)
Definition VersionMin.hpp:71
void sdk(const version_t &sdk)
Definition VersionMin.hpp:63
std::ostream & print(std::ostream &os) const override
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