16#ifndef LIEF_MACHO_BUILD_VERSION_COMMAND_H
17#define LIEF_MACHO_BUILD_VERSION_COMMAND_H
31struct build_version_command;
63 std::unique_ptr<LoadCommand>
clone()
const override {
64 return std::unique_ptr<BuildVersion>(
new BuildVersion(*
this));
97 std::ostream&
print(std::ostream& os)
const override;
100 return cmd->
command() == LoadCommand::TYPE::BUILD_VERSION;
104 PLATFORMS platform_ = PLATFORMS::UNKNOWN;
Class used to parse a single binary (i.e. non-FAT)
Definition BinaryParser.hpp:74
Definition BuildVersion.hpp:34
void minos(version_t version)
Definition BuildVersion.hpp:71
const tools_list_t & tools() const
Definition BuildVersion.hpp:89
BuildVersion & operator=(const BuildVersion ©)=default
BuildVersion(const details::build_version_command &version_cmd)
std::vector< BuildToolVersion > tools_list_t
Definition BuildVersion.hpp:41
PLATFORMS platform() const
Definition BuildVersion.hpp:82
std::ostream & print(std::ostream &os) const override
static bool classof(const LoadCommand *cmd)
Definition BuildVersion.hpp:99
PLATFORMS
Definition BuildVersion.hpp:44
std::array< uint32_t, 3 > version_t
Version is an array of 3 integers.
Definition BuildVersion.hpp:39
void accept(Visitor &visitor) const override
~BuildVersion() override=default
version_t sdk() const
Definition BuildVersion.hpp:75
version_t minos() const
Definition BuildVersion.hpp:67
BuildVersion(const PLATFORMS platform, const version_t &minos, const version_t &sdk, const tools_list_t &tools)
void sdk(version_t version)
Definition BuildVersion.hpp:78
BuildVersion(const BuildVersion ©)=default
std::unique_ptr< LoadCommand > clone() const override
Definition BuildVersion.hpp:63
void platform(PLATFORMS plat)
Definition BuildVersion.hpp:85
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:122
Definition Visitor.hpp:224
const char * to_string(BuildToolVersion::TOOLS tool)
LIEF namespace.
Definition Abstract/Binary.hpp:32
PLATFORMS
Definition platforms.hpp:26
#define LIEF_API
Definition visibility.h:41