Skip to content
Permalink
Browse files

Add a broader restorer class

  • Loading branch information
pblottiere committed May 1, 2020
1 parent 8211643 commit 5df137316672be57afe902fb338a209acbdf9f6b
@@ -19,7 +19,7 @@ SET (WMS_SRCS
qgsmediancut.cpp
qgswmsrenderer.cpp
qgswmsparameters.cpp
qgslayerrestorer.cpp
qgswmsrestorer.cpp
qgswmsrendercontext.cpp
)

@@ -58,7 +58,7 @@
#include "qgsvectorlayerlabeling.h"
#include "qgsvectorlayerfeaturecounter.h"
#include "qgspallabeling.h"
#include "qgslayerrestorer.h"
#include "qgswmsrestorer.h"
#include "qgsdxfexport.h"
#include "qgssymbollayerutils.h"
#include "qgsserverexception.h"
@@ -1,6 +1,6 @@
/***************************************************************************
qgslayerrestorer.cpp
--------------------
qgswmsrestorer.cpp
------------------
begin : April 24, 2017
copyright : (C) 2017 by Paul Blottiere
email : paul.blottiere@oslandia.com
@@ -15,7 +15,7 @@
* *
***************************************************************************/

#include "qgslayerrestorer.h"
#include "qgswmsrestorer.h"
#include "qgsmessagelog.h"
#include "qgsmaplayer.h"
#include "qgsvectorlayer.h"
@@ -135,3 +135,10 @@ QgsLayerRestorer::~QgsLayerRestorer()
}
}
}

namespace QgsWms {
QgsWmsRestorer::QgsWmsRestorer( const QgsWmsRenderContext &context )
{
mLayerRestorer.reset( new QgsLayerRestorer( context.layers()) );
}
}
@@ -1,6 +1,6 @@
/***************************************************************************
qgslayerrestorer.h
-------------------
qgswmsrestorer.h
----------------
begin : April 24, 2017
copyright : (C) 2017 by Paul Blottiere
email : paul.blottiere@oslandia.com
@@ -15,14 +15,15 @@
* *
***************************************************************************/

#ifndef QGSLAYERRESTORER_H
#define QGSLAYERRESTORER_H
#ifndef QGSWMSRESTORER_H
#define QGSWMSRESTORER_H

#include <QList>
#include <QDomDocument>
#include <QMap>

#include "qgsfeatureid.h"
#include "qgswmsrendercontext.h"

class QgsMapLayer;

@@ -64,4 +65,17 @@ class QgsLayerRestorer
QMap<QgsMapLayer *, QgsLayerSettings> mLayerSettings;
};

namespace QgsWms {
class QgsWmsRestorer
{
public:

QgsWmsRestorer( const QgsWmsRenderContext &context );

private:

std::unique_ptr<QgsLayerRestorer> mLayerRestorer;
};
};

#endif
@@ -38,7 +38,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
#See: http://www.cmake.org/Wiki/CMake_RPATH_handling#No_relinking_and_full_RPATH_for_the_install_tree
SET(MODULE_WMS_SRCS
${CMAKE_SOURCE_DIR}/src/server/services/wms/qgswmsrenderer.cpp
${CMAKE_SOURCE_DIR}/src/server/services/wms/qgslayerrestorer.cpp
${CMAKE_SOURCE_DIR}/src/server/services/wms/qgswmsrestorer.cpp
${CMAKE_SOURCE_DIR}/src/server/services/wms/qgsmaprendererjobproxy.cpp
${CMAKE_SOURCE_DIR}/src/server/services/wms/qgswmsparameters.cpp
${CMAKE_SOURCE_DIR}/src/server/services/wms/qgswmsrendercontext.cpp

0 comments on commit 5df1373

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