Gromacs
2025-dev-20241002-88a4191
|
#include <filesystem>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Declares functions for OS-independent path handling.
Functions | |
std::vector < std::filesystem::path > | gmx::splitPathEnvironment (const std::string &pathEnv) |
Split PATH environment variable into search paths. More... | |
std::vector < std::filesystem::path > | gmx::getSystemExecutablePaths () |
Get collection of possible executable paths. | |
std::string | gmx::stripSourcePrefix (const char *path) |
Strip source prefix from path. | |
std::filesystem::path | gmx::concatenateBeforeExtension (const std::filesystem::path &path, const std::string &addition) |
Concatenate before extension. | |
std::filesystem::path | gmx::stripExtension (const std::filesystem::path &path) |
Remove extension from file path. | |
bool | gmx::extensionMatches (const std::filesystem::path &path, std::string_view extension) |
Check if file extension of path without final '.' matches extension . | |