Gromacs  2025-dev-20240516-46ce888
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
#include <filesystem>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
+ Include dependency graph for path.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares functions for OS-independent path handling.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

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.