QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
Cache for server configuration. More...
#include <qgsconfigcache.h>
Public Member Functions | |
const QgsProject * | project (const QString &path) |
If the project is not cached yet, then the project is read thanks to the path. More... | |
void | removeEntry (const QString &path) |
Removes an entry from cache. More... | |
Static Public Member Functions | |
static QgsConfigCache * | instance () |
Returns the current instance. More... | |
|
static |
Returns the current instance.
Definition at line 25 of file qgsconfigcache.cpp.
const QgsProject * QgsConfigCache::project | ( | const QString & | path | ) |
If the project is not cached yet, then the project is read thanks to the path.
If the project is not available, then nullptr
is returned.
path | the filename of the QGIS project |
nullptr
if an error happened Definition at line 40 of file qgsconfigcache.cpp.
void QgsConfigCache::removeEntry | ( | const QString & | path | ) |
Removes an entry from cache.
path | The path of the project |
Definition at line 119 of file qgsconfigcache.cpp.