16#ifndef LIEF_MACHO_SOURCE_VERSION_COMMAND_H
17#define LIEF_MACHO_SOURCE_VERSION_COMMAND_H
21#include "LIEF/visibility.h"
23#include "LIEF/MachO/LoadCommand.hpp"
29struct source_version_command;
42 SourceVersion(
const details::source_version_command& version_cmd);
47 std::unique_ptr<LoadCommand> clone()
const override {
48 return std::unique_ptr<SourceVersion>(
new SourceVersion(*
this));
57 void version(
const version_t& version) {
61 void accept(
Visitor& visitor)
const override;
63 std::ostream& print(std::ostream& os)
const override;
65 static bool classof(
const LoadCommand* cmd) {
66 return cmd->command() == LoadCommand::TYPE::SOURCE_VERSION;
70 version_t version_ = {0};
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
Class that represents the MachO LoadCommand::TYPE::SOURCE_VERSION This command is used to provide the...
Definition SourceVersion.hpp:35
const version_t & version() const
Return the version as an array.
Definition SourceVersion.hpp:54
std::array< uint32_t, 5 > version_t
Version is an array of 5 integers.
Definition SourceVersion.hpp:39
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32