|
vtk-dicom
0.8.17
|
A class that provides path manipulation. More...
#include <vtkDICOMFilePath.h>
Public Member Functions | |
| vtkDICOMFilePath (const std::string &path) | |
| Create a new path from the given string. More... | |
| vtkDICOMFilePath (const vtkDICOMFilePath &) | |
| Copy constructor. | |
| ~vtkDICOMFilePath () | |
| Destructor. | |
| const std::string & | AsString () const |
| Get the path as a string. | |
| bool | IsEmpty () const |
| Check if the path is empty. | |
| bool | IsRoot () const |
| Check if the path is a root path. | |
| bool | IsDirectory () const |
| Check whether the path is an existing directory. | |
| bool | IsSpecial () const |
| Check whether the path goes to a device, socket, or pipe. | |
| bool | IsSymlink () const |
| Check whether the path is a symbolic link. | |
| std::string | Join (const std::string &second) const |
| Return the path joined with the given extra component. | |
| std::string | GetBack () const |
| Get the final component of the path. | |
| void | PopBack () |
| Remove a component from the path. | |
| void | PushBack (const std::string &path) |
| Add a new component (or components) to the path. | |
| std::string | GetExtension () const |
| Get the file extension (the final dot and everything after). | |
| void | PopExtension () |
| Remove the current file extension, including the dot. | |
| void | PushExtension (const std::string &path) |
| Add a new file extension to the current file path. | |
| std::string | GetRealPath () const |
| Get the full absolute path (or empty string if file doesn't exist). More... | |
| vtkDICOMFilePath & | operator= (const vtkDICOMFilePath &) |
| Assignment operator. | |
A class that provides path manipulation.
| vtkDICOMFilePath::vtkDICOMFilePath | ( | const std::string & | path | ) |
Create a new path from the given string.
Trailing slashes will be removed (unless the trailing slash is the root of the filesystem).
| std::string vtkDICOMFilePath::GetRealPath | ( | ) | const |
Get the full absolute path (or empty string if file doesn't exist).
This will go to the file system to find the true path to a file, including exactly the same case as used by the file system. On Windows, all forward slashes will be converted to back slashes, and the returned file name will have a \?\ prefix to indicate that extended path processing should be used.