QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsprocessingmodelconfig.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingmodelconfig.cpp
3 ----------------------
4 begin : April 2024
5 copyright : (C) 2024 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
19#include "qgsmaplayerstore.h"
20
22
24
26{
27 return mModelInitialLayerStore.get();
28}
29
31{
32 return std::move( mModelInitialLayerStore );
33}
34
35void QgsProcessingModelInitialRunConfig::setPreviousLayerStore( std::unique_ptr<QgsMapLayerStore> store )
36{
37 if ( store )
38 {
39 Q_ASSERT_X( !store->thread(), "QgsProcessingModelInitialRunConfig::setPreviousLayerStore", "store must have been pushed to a nullptr thread prior to calling this method" );
40 }
41 mModelInitialLayerStore = std::move( store );
42}
A storage object for map layers, in which the layers are owned by the store and have their lifetime b...
void setPreviousLayerStore(std::unique_ptr< QgsMapLayerStore > store)
Sets the map store containing copies of temporary layers generated during previous model executions.
QgsMapLayerStore * previousLayerStore()
Returns a reference to a map store containing copies of temporary layers generated during previous mo...
std::unique_ptr< QgsMapLayerStore > takePreviousLayerStore()
Takes the map store containing copies of temporary layers generated during previous model executions.