QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsCapabilitiesCache Class Reference

A cache for capabilities xml documents (by configuration file path) More...

#include <qgscapabilitiescache.h>

Inheritance diagram for QgsCapabilitiesCache:
Inheritance graph
[legend]

Public Member Functions

 QgsCapabilitiesCache (int size)
 
void insertCapabilitiesDocument (const QString &configFilePath, const QString &key, const QDomDocument *doc)
 Inserts new capabilities document (creates a copy of the document, does not take ownership)
 
void removeCapabilitiesDocument (const QString &path)
 Remove capabilities document.
 
const QDomDocument * searchCapabilitiesDocument (const QString &configFilePath, const QString &key)
 Returns cached capabilities document (or 0 if document for configuration file not in cache)
 

Detailed Description

A cache for capabilities xml documents (by configuration file path)

Definition at line 35 of file qgscapabilitiescache.h.

Constructor & Destructor Documentation

◆ QgsCapabilitiesCache()

QgsCapabilitiesCache::QgsCapabilitiesCache ( int  size)

Definition at line 32 of file qgscapabilitiescache.cpp.

Member Function Documentation

◆ insertCapabilitiesDocument()

void QgsCapabilitiesCache::insertCapabilitiesDocument ( const QString &  configFilePath,
const QString &  key,
const QDomDocument *  doc 
)

Inserts new capabilities document (creates a copy of the document, does not take ownership)

Parameters
configFilePaththe project file path
keykey used to separate different version in different cache
docthe DOM document

Definition at line 55 of file qgscapabilitiescache.cpp.

◆ removeCapabilitiesDocument()

void QgsCapabilitiesCache::removeCapabilitiesDocument ( const QString &  path)

Remove capabilities document.

Parameters
paththe project file path
Since
QGIS 2.16

Definition at line 90 of file qgscapabilitiescache.cpp.

◆ searchCapabilitiesDocument()

const QDomDocument * QgsCapabilitiesCache::searchCapabilitiesDocument ( const QString &  configFilePath,
const QString &  key 
)

Returns cached capabilities document (or 0 if document for configuration file not in cache)

Parameters
configFilePaththe progect file path
keykey used to separate different version in different cache

Definition at line 41 of file qgscapabilitiescache.cpp.


The documentation for this class was generated from the following files: