QGIS API Documentation  3.0.2-Girona (307d082)
qgspathresolver.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspathresolver.h
3  --------------------------------------
4  Date : February 2017
5  Copyright : (C) 2017 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSPATHRESOLVER_H
17 #define QGSPATHRESOLVER_H
18 
19 #include "qgis_core.h"
20 
21 #include <QString>
22 
23 
30 class CORE_EXPORT QgsPathResolver
31 {
32  public:
34  explicit QgsPathResolver( const QString &baseFileName = QString() );
35 
41  QString writePath( const QString &filename ) const;
42 
44  QString readPath( const QString &filename ) const;
45 
46  private:
48  QString mBaseFileName;
49 };
50 
51 #endif // QGSPATHRESOLVER_H
Resolves relative paths into absolute paths and vice versa.