LIEF: Library to Instrument Executable Formats Version 0.16.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
}
 
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)
 
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 

Constructor & Destructor Documentation

◆ BuildToolVersion() [1/2]

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

◆ BuildToolVersion() [2/2]

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

◆ ~BuildToolVersion()

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

Member Function Documentation

◆ accept()

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

Implements LIEF::Object.

◆ tool()

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

The tools used.

◆ 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: