LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
LIEF::runtime::Host Class Reference

This class represents the current host. More...

#include <Host.hpp>

Static Public Member Functions

static std::string name ()
 The machine hostname.
static std::string home_dir ()
 The user home dir (e.g. /home/romain or C:\Users\romain).
static std::string tmp_dir ()
 Temporary directory.
static std::string config_dir ()
 The directory to store user-specific configuration.
static std::string cache_dir ()
 The directory where software should store their cache files (e.g. $HOME/.cache).

Detailed Description

This class represents the current host.

Member Function Documentation

◆ cache_dir()

std::string LIEF::runtime::Host::cache_dir ( )
static

The directory where software should store their cache files (e.g. $HOME/.cache).

◆ config_dir()

std::string LIEF::runtime::Host::config_dir ( )
static

The directory to store user-specific configuration.

◆ home_dir()

std::string LIEF::runtime::Host::home_dir ( )
static

The user home dir (e.g. /home/romain or C:\Users\romain).

◆ name()

std::string LIEF::runtime::Host::name ( )
static

The machine hostname.

◆ tmp_dir()

std::string LIEF::runtime::Host::tmp_dir ( )
static

Temporary directory.

This function looks at the environment variables to determine the suitable temp directory (e.g. TEMP, TMPDIR)


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