utils#
Classes#
Line#
Structs#
Functions#
find_static_file#
-
inline fs::path ioh::common::file::utils::find_static_file(const std::string &filename)#
Finds a file located in the static folder of this repository.
- Parameters:
filename – the name of the file
- Returns:
fs::path the absolute path of the file
from_string#
Warning
doxygenfunction: Unable to resolve function “ioh::common::file::utils::from_string” with arguments None in doxygen xml output for project “iohcpp” from directory: ../../build/xml/. Potential matches:
- template<typename T> std::enable_if<std::is_floating_point<T>::value, T>::type from_string(const std::string &s)
- template<typename T> std::enable_if<std::is_integral<T>::value, T>::type from_string(const std::string &s)
get_static_root#
-
inline fs::path ioh::common::file::utils::get_static_root()#
Get the absolute path of IOHexperimenter/static.
- Returns:
fs::path the absolute path of IOHexperimenter/static
get_static_root_by_env#
-
inline fs::path ioh::common::file::utils::get_static_root_by_env()#
Get the absolute path of IOHexperimenter/static.
This function attempts to find the absolute path based on environment variables. It first checks if ‘IOH_RESOURCES’ is set and uses it if available. If ‘IOH_RESOURCES’ is not set, it then checks ‘GITHUB_WORKSPACE’. If neither are set, it logs an error and returns a placeholder path.
- Returns:
fs::path the absolute path of IOHexperimenter/static