QGIS API Documentation 3.99.0-Master (26c88405ac0)
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
20#include "qgsmaplayerstore.h"
21
23
25
27{
28 return mModelInitialLayerStore.get();
29}
30
32{
33 return std::move( mModelInitialLayerStore );
34}
35
36void QgsProcessingModelInitialRunConfig::setPreviousLayerStore( std::unique_ptr<QgsMapLayerStore> store )
37{
38 if ( store )
39 {
40 Q_ASSERT_X( !store->thread(), "QgsProcessingModelInitialRunConfig::setPreviousLayerStore", "store must have been pushed to a nullptr thread prior to calling this method" );
41 }
42 mModelInitialLayerStore = std::move( store );
43}
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.