Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 3, 2020
1 parent bf4eca1 commit 59b18b8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/server/services/wms/qgswmsrestorer.h
Expand Up @@ -65,13 +65,28 @@ class QgsLayerRestorer
QMap<QgsMapLayer *, QgsLayerSettings> mLayerSettings;
};

namespace QgsWms {
namespace QgsWms
{
/**
* \ingroup server
* RAII class to restore the rendering context configuration on destruction
* \since QGIS 3.14
*/
class QgsWmsRestorer
{
public:

/**
* Constructor for QgsWmsRestorer.
* \param context The rendering context to restore in its initial state
*/
QgsWmsRestorer( const QgsWmsRenderContext &context );

/**
* Default destructor.
*/
~QgsWmsRestorer() = default;

private:

std::unique_ptr<QgsLayerRestorer> mLayerRestorer;
Expand Down

0 comments on commit 59b18b8

Please sign in to comment.