LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::MachO::BuildToolVersion Class Reference

Class that represents a tool's version that was involved in the build of the binary. More...

#include <BuildToolVersion.hpp>

Inheritance diagram for LIEF::MachO::BuildToolVersion:
Collaboration diagram for LIEF::MachO::BuildToolVersion:

Public Types

enum class  TOOLS {
  UNKNOWN = 0 , CLANG = 1 , SWIFT = 2 , LD = 3 ,
  LLD = 4 , METAL = 1024 , AIRLLD = 1025 , AIRNT = 1026 ,
  AIRNT_PLUGIN = 1027 , AIRPACK = 1028 , GPUARCHIVER = 1031 , METAL_FRAMEWORK = 1032
}
using version_t = std::array<uint32_t, 3>
 A version is an array of 3 integers.
Public Types inherited from LIEF::Object
template<class T>
using output_t = add_pointer_t<decay_t<T>>
template<class T>
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>

Public Member Functions

 BuildToolVersion ()=default
 BuildToolVersion (const details::build_tool_version &tool)
TOOLS tool () const
 The tools used.
version_t version () const
 Version associated with the tool.
 ~BuildToolVersion () override=default
void accept (Visitor &visitor) const override
Public Member Functions inherited from LIEF::Object
 Object ()
 Object (const Object &other)
Objectoperator= (const Object &other)
 Object (Object &&other) noexcept=default
Objectoperator= (Object &&other) noexcept=default
template<class T>
output_t< T > as ()
template<class T>
output_const_t< T > as () const
virtual bool operator== (const Object &other) const
virtual bool operator!= (const Object &other) const
virtual ~Object ()

Detailed Description

Class that represents a tool's version that was involved in the build of the binary.

Member Typedef Documentation

◆ version_t

using LIEF::MachO::BuildToolVersion::version_t = std::array<uint32_t, 3>

A version is an array of 3 integers.

Member Enumeration Documentation

◆ TOOLS

Enumerator
UNKNOWN 
CLANG 
SWIFT 
LD 
LLD 
METAL 
AIRLLD 
AIRNT 
AIRNT_PLUGIN 
AIRPACK 
GPUARCHIVER 
METAL_FRAMEWORK 

Constructor & Destructor Documentation

◆ BuildToolVersion() [1/2]

LIEF::MachO::BuildToolVersion::BuildToolVersion ( )
default

Referenced by operator<<.

◆ BuildToolVersion() [2/2]

LIEF::MachO::BuildToolVersion::BuildToolVersion ( const details::build_tool_version & tool)

References tool().

◆ ~BuildToolVersion()

LIEF::MachO::BuildToolVersion::~BuildToolVersion ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::MachO::BuildToolVersion::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

References LIEF_API.

◆ tool()

TOOLS LIEF::MachO::BuildToolVersion::tool ( ) const
inline

The tools used.

Referenced by BuildToolVersion(), and operator<<.

◆ version()

version_t LIEF::MachO::BuildToolVersion::version ( ) const
inline

Version associated with the tool.


The documentation for this class was generated from the following file: