Skip to content
Permalink
Browse files

Add documentation

  • Loading branch information
pblottiere committed May 2, 2020
1 parent bf4eca1 commit 59b18b8359a0306c8e3d9504977322157446c1bb
Showing with 16 additions and 1 deletion.
  1. +16 −1 src/server/services/wms/qgswmsrestorer.h
@@ -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;

0 comments on commit 59b18b8

Please sign in to comment.
You can’t perform that action at this time.