QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
vector
qgsvectordataprovidertemporalcapabilities.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectordataprovidertemporalcapabilities.h
3
---------------
4
begin : March 2020
5
copyright : (C) 2020 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
#ifndef QGSVECTORDATAPROVIDERTEMPORALCAPABILITIES_H
19
#define QGSVECTORDATAPROVIDERTEMPORALCAPABILITIES_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsrange.h
"
24
#include "
qgsdataprovidertemporalcapabilities.h
"
25
37
class
CORE_EXPORT
QgsVectorDataProviderTemporalCapabilities
:
public
QgsDataProviderTemporalCapabilities
38
{
39
public
:
40
46
QgsVectorDataProviderTemporalCapabilities
(
bool
enabled =
false
);
47
53
Qgis::VectorDataProviderTemporalMode
mode()
const
;
54
60
void
setMode(
Qgis::VectorDataProviderTemporalMode
mode );
61
67
void
setAvailableTemporalRange(
const
QgsDateTimeRange &range );
68
74
const
QgsDateTimeRange &availableTemporalRange()
const
;
75
84
QString startField()
const
;
85
94
void
setStartField(
const
QString &
field
);
95
102
QString endField()
const
;
103
110
void
setEndField(
const
QString &
field
);
111
112
private
:
113
122
QgsDateTimeRange mAvailableTemporalRange;
123
124
Qgis::VectorDataProviderTemporalMode
mMode = Qgis::VectorDataProviderTemporalMode::HasFixedTemporalRange;
125
126
QString mStartField;
127
QString mEndField;
128
129
};
130
131
#endif // QGSVECTORDATAPROVIDERTEMPORALCAPABILITIES_H
qgsdataprovidertemporalcapabilities.h
qgsrange.h
field
const QgsField & field
Definition:
qgsfield.h:463
QgsDataProviderTemporalCapabilities
Base class for handling properties relating to a data provider's temporal capabilities.
Definition:
qgsdataprovidertemporalcapabilities.h:33
qgis_sip.h
QgsVectorDataProviderTemporalCapabilities
Implementation of data provider temporal properties for QgsVectorDataProviders.
Definition:
qgsvectordataprovidertemporalcapabilities.h:37
Qgis::VectorDataProviderTemporalMode
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition:
qgis.h:1194
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17