QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
models
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
18
#include "
qgsprocessingmodelconfig.h
"
19
20
#include "
qgsmaplayerstore.h
"
21
22
QgsProcessingModelInitialRunConfig::QgsProcessingModelInitialRunConfig
() =
default
;
23
24
QgsProcessingModelInitialRunConfig::~QgsProcessingModelInitialRunConfig
() =
default
;
25
26
QgsMapLayerStore
*
QgsProcessingModelInitialRunConfig::previousLayerStore
()
27
{
28
return
mModelInitialLayerStore.get();
29
}
30
31
std::unique_ptr<QgsMapLayerStore>
QgsProcessingModelInitialRunConfig::takePreviousLayerStore
()
32
{
33
return
std::move( mModelInitialLayerStore );
34
}
35
36
void
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
}
QgsMapLayerStore
A storage object for map layers, in which the layers are owned by the store and have their lifetime b...
Definition
qgsmaplayerstore.h:36
QgsProcessingModelInitialRunConfig::setPreviousLayerStore
void setPreviousLayerStore(std::unique_ptr< QgsMapLayerStore > store)
Sets the map store containing copies of temporary layers generated during previous model executions.
Definition
qgsprocessingmodelconfig.cpp:36
QgsProcessingModelInitialRunConfig::QgsProcessingModelInitialRunConfig
QgsProcessingModelInitialRunConfig()
QgsProcessingModelInitialRunConfig::previousLayerStore
QgsMapLayerStore * previousLayerStore()
Returns a reference to a map store containing copies of temporary layers generated during previous mo...
Definition
qgsprocessingmodelconfig.cpp:26
QgsProcessingModelInitialRunConfig::takePreviousLayerStore
std::unique_ptr< QgsMapLayerStore > takePreviousLayerStore()
Takes the map store containing copies of temporary layers generated during previous model executions.
Definition
qgsprocessingmodelconfig.cpp:31
QgsProcessingModelInitialRunConfig::~QgsProcessingModelInitialRunConfig
~QgsProcessingModelInitialRunConfig()
qgsmaplayerstore.h
qgsprocessingmodelconfig.h
Generated on
for QGIS API Documentation by
1.17.0