File path manipulation routines.
More...
#include <radarlib/io.hpp>
|
| static std::string | getBasePath (const std::string &path) |
| | Extract the parent directory path of a file or directory indicated.
|
| |
| static std::string | getFileName (const std::string &path) |
| | Extract the file or directory name from a generic path.
|
| |
| static std::string | getFileExt (const std::string &path) |
| | Extract the directory or file exstension without the dot.
|
| |
| static std::string | changeExt (const std::string &path, const std::string &newext) |
| | Returns the path indicated after changing che extension.
|
| |
| static std::string | removeExt (const std::string &path) |
| | Remove the extension from a file or directory path.
|
| |
File path manipulation routines.
This class provides functions to manipulate file paths, extension etc.
◆ getBasePath()
| std::string Radar::Path::getBasePath |
( |
const std::string & | path | ) |
|
|
static |
Extract the parent directory path of a file or directory indicated.
- Parameters
-
| path | the path of a file or directory |
- Examples
- pvolsplitter.cpp.
◆ getFileName()
| std::string Radar::Path::getFileName |
( |
const std::string & | path | ) |
|
|
static |
Extract the file or directory name from a generic path.
- Parameters
-
| path | the path of a file or directory |
- Examples
- pvolsplitter.cpp.
◆ getFileExt()
| std::string Radar::Path::getFileExt |
( |
const std::string & | path | ) |
|
|
static |
Extract the directory or file exstension without the dot.
- Parameters
-
| path | the path of a file or directory |
◆ changeExt()
| std::string Radar::Path::changeExt |
( |
const std::string & | path, |
|
|
const std::string & | newext ) |
|
static |
Returns the path indicated after changing che extension.
- Parameters
-
| path | the original path |
| newext | the new extension |
◆ removeExt()
| std::string Radar::Path::removeExt |
( |
const std::string & | path | ) |
|
|
static |
Remove the extension from a file or directory path.
- Parameters
-
The documentation for this class was generated from the following files:
- radarlib/io.hpp
- radarlib/io.cpp