|
CPN
Computational Process Networks
|
Include dependency graph for PathUtils.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| std::string | RealPath (const std::string &path) |
| std::string | DirName (const std::string &path) |
| std::string | BaseName (const std::string &path) |
| std::string | PathConcat (const std::string &dir, const std::string &file) |
| bool | IsAbsPath (const std::string &path) |
Definition in file PathUtils.h.
| std::string BaseName | ( | const std::string & | path | ) |
Essentially the same as basename from libgen but this one is reentrant.
Definition at line 64 of file PathUtils.cc.
References PATH_SEP.
| std::string DirName | ( | const std::string & | path | ) |
This was written to provide a reentrant version of dirname. Should work the same as dirname in the POSIX 1003.1-2008 specification. Note that giving '..' returns '.' which is what the POSIX standard says but man basename does '..' gives '..' on most systems.
Definition at line 39 of file PathUtils.cc.
References PATH_SEP.
Referenced by Loader().
Here is the caller graph for this function:| bool IsAbsPath | ( | const std::string & | path | ) |
Definition at line 89 of file PathUtils.cc.
References PATH_SEP.
Referenced by ProcessLine().
Here is the caller graph for this function:| std::string PathConcat | ( | const std::string & | dir, |
| const std::string & | file | ||
| ) |
Convinience function to concatinate a filename to a directory in a platform dependent way.
Definition at line 85 of file PathUtils.cc.
References PATH_SEP.
Referenced by ProcessLine().
Here is the caller graph for this function:| std::string RealPath | ( | const std::string & | path | ) |
Fully resolve path to its absolute path. path must exist. Follows symlinks.
Definition at line 29 of file PathUtils.cc.
Referenced by Loader(), and ProcessLine().
Here is the caller graph for this function:
1.8.5