QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
Resolves relative paths into absolute paths and vice versa. More...
#include <qgspathresolver.h>
Public Member Functions | |
QgsPathResolver (const QString &baseFileName=QString()) | |
Initialize path resolver with a base filename. Null filename means no conversion between relative/absolute path. More... | |
QString | readPath (const QString &filename) const |
Turn filename read from the project file to an absolute path. More... | |
QString | writePath (const QString &filename) const |
Prepare a filename to save it to the project file. More... | |
Resolves relative paths into absolute paths and vice versa.
Used for writing
Definition at line 30 of file qgspathresolver.h.
|
explicit |
Initialize path resolver with a base filename. Null filename means no conversion between relative/absolute path.
Definition at line 23 of file qgspathresolver.cpp.
QString QgsPathResolver::readPath | ( | const QString & | filename | ) | const |
Turn filename read from the project file to an absolute path.
Definition at line 29 of file qgspathresolver.cpp.
QString QgsPathResolver::writePath | ( | const QString & | filename | ) | const |
Prepare a filename to save it to the project file.
Creates an absolute or relative path according to the project settings. Paths written to the project file should be prepared with this method.
Definition at line 145 of file qgspathresolver.cpp.