NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Compiler::ExecutablePath Namespace Reference

Namespaces

 detail
 

Classes

class  RuntimePathConfig
 This class holds information about the runtime path of different nes components. More...
 

Functions

bool isInInstallDir ()
 
RuntimePathConfig loadRuntimePathConfig ()
 
std::filesystem::path getExecutablePath ()
 Gets the path of the current executable. More...
 
std::filesystem::path getPublicIncludes ()
 Gets the path to the public includes. More...
 
std::filesystem::path getLibPath (std::string libName)
 Gets the path to the nes lib. More...
 
std::filesystem::path getClangPath ()
 Gets the path to the nes clang executable. More...
 
bool isInBuildDir ()
 
bool isInBuildDirIsAvailable ()
 
bool isInUNIXInstallDir ()
 
bool isInLocalInstallDir ()
 
std::ostream & operator<< (std::ostream &os, const RuntimePathConfig &config)
 

Variables

std::string UNIX_INSTALL_BIN_DIR = "/usr/local/bin"
 
std::string DEFAULT_PUBLIC_INCLUDE_DIR_UNIX_INSTALL = "/usr/local/include/nebulastream"
 
std::string DEFAULT_LIB_UNIX_INSTALL = "/usr/local/lib"
 
std::string DEFAULT_CLANG_PATH_UNIX_INSTALL = "/usr/local/bin/nes-clang"
 

Function Documentation

◆ getClangPath()

std::filesystem::path NES::Compiler::ExecutablePath::getClangPath ( )

Gets the path to the nes clang executable.

Returns
std::filesystem::path

References getExecutablePath(), and NES_DEBUG.

Here is the call graph for this function:

◆ getExecutablePath()

std::filesystem::path NES::Compiler::ExecutablePath::getExecutablePath ( )

Gets the path of the current executable.

Returns
std::filesystem::path

Referenced by getClangPath(), getPublicIncludes(), isInBuildDir(), isInLocalInstallDir(), isInUNIXInstallDir(), and loadRuntimePathConfig().

Here is the caller graph for this function:

◆ getLibPath()

std::filesystem::path NES::Compiler::ExecutablePath::getLibPath ( std::string  libName)

Gets the path to the nes lib.

Returns
std::filesystem::path

◆ getPublicIncludes()

std::filesystem::path NES::Compiler::ExecutablePath::getPublicIncludes ( )

Gets the path to the public includes.

Returns
std::filesystem::path

References getExecutablePath(), NES_DEBUG, and NES::Compiler::ExecutablePath::detail::recursiveFindFileReverse().

Here is the call graph for this function:

◆ isInBuildDir()

bool NES::Compiler::ExecutablePath::isInBuildDir ( )

References getExecutablePath().

Referenced by loadRuntimePathConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInBuildDirIsAvailable()

bool NES::Compiler::ExecutablePath::isInBuildDirIsAvailable ( )

Referenced by loadRuntimePathConfig().

Here is the caller graph for this function:

◆ isInInstallDir()

bool NES::Compiler::ExecutablePath::isInInstallDir ( )

◆ isInLocalInstallDir()

bool NES::Compiler::ExecutablePath::isInLocalInstallDir ( )

References getExecutablePath().

Referenced by loadRuntimePathConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInUNIXInstallDir()

bool NES::Compiler::ExecutablePath::isInUNIXInstallDir ( )

References getExecutablePath(), and UNIX_INSTALL_BIN_DIR.

Referenced by loadRuntimePathConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadRuntimePathConfig()

RuntimePathConfig NES::Compiler::ExecutablePath::loadRuntimePathConfig ( )

References DEFAULT_CLANG_PATH_UNIX_INSTALL, DEFAULT_LIB_UNIX_INSTALL, DEFAULT_PUBLIC_INCLUDE_DIR_UNIX_INSTALL, getExecutablePath(), isInBuildDir(), isInBuildDirIsAvailable(), isInLocalInstallDir(), isInUNIXInstallDir(), NES_DEBUG, and NES_INFO.

Here is the call graph for this function:

◆ operator<<()

std::ostream& NES::Compiler::ExecutablePath::operator<< ( std::ostream &  os,
const RuntimePathConfig config 
)

Variable Documentation

◆ DEFAULT_CLANG_PATH_UNIX_INSTALL

std::string NES::Compiler::ExecutablePath::DEFAULT_CLANG_PATH_UNIX_INSTALL = "/usr/local/bin/nes-clang"

Referenced by loadRuntimePathConfig().

◆ DEFAULT_LIB_UNIX_INSTALL

std::string NES::Compiler::ExecutablePath::DEFAULT_LIB_UNIX_INSTALL = "/usr/local/lib"

Referenced by loadRuntimePathConfig().

◆ DEFAULT_PUBLIC_INCLUDE_DIR_UNIX_INSTALL

std::string NES::Compiler::ExecutablePath::DEFAULT_PUBLIC_INCLUDE_DIR_UNIX_INSTALL = "/usr/local/include/nebulastream"

Referenced by loadRuntimePathConfig().

◆ UNIX_INSTALL_BIN_DIR

std::string NES::Compiler::ExecutablePath::UNIX_INSTALL_BIN_DIR = "/usr/local/bin"

Referenced by isInUNIXInstallDir().